ICrystalJsonTypeResolver
Namespace: SnowBank.Data.Json · interface
Type that is able to extra type metadata used during JSON serialization
Methods
TryGetConverterFor
bool TryGetConverterFor<T>(out IJsonConverter<T> converter)
Returns the converter for the given type in this collection
converter— Receives the converter for this type, if it is managed by this collection
Returns: true if this collection handles this type; otherwise, false
bool TryGetConverterFor(Type type, out IJsonConverter converter)
Returns the converter for the given type in this collection
type— Type of values that needs to be convertedconverter— Receives the converter for this type, if it is managed by this collection
Returns: true if this collection handles this type; otherwise, false
TryResolveTypeDefinition
bool TryResolveTypeDefinition<T>(out CrystalJsonTypeDefinition definition)
Returns the type definition for the specified type
definition— Receives the definition for this type, if it is known by this resolver
Returns: true if the resolver can handle this type; otherwise, false
bool TryResolveTypeDefinition(Type type, out CrystalJsonTypeDefinition definition)
Returns the type definition for the specified type
type— Type to inspectdefinition— Receives the definition for this type, if it is known by this resolver
Returns: true if the resolver can handle this type; otherwise, false