Interface ITypeResolver
Defines the methods that enable conversion of CLR types to type names and type names to CLR types for the purpose of JSON serialization.
public interface ITypeResolver
Methods
GetTypeFromName(string)
Gets the CLR type that corresponds to the type name, retrieved from the JSON document.
Type GetTypeFromName(string typeName)
Parameters
typeName
stringString representation of the CLR type.
Returns
- Type
CLR type that corresponds to the string representation.
GetTypeName(Type)
Gets the name of the type from the CLR type, for the purpose of JSON serialization.
string GetTypeName(Type type)
Parameters
type
TypeCLR type.
Returns
- string
String representation of the CLR type.