Method GetValueSerializerFor
GetValueSerializerFor(Type)
Get the value serializer associated with the given type.
ValueSerializer GetValueSerializerFor(Type type)
Parameters
type
TypeThe type of the value that is to be convert
Returns
- ValueSerializer
A value serializer for capable of serializing the given type
GetValueSerializerFor(PropertyDescriptor)
Get a value serializer for the given property descriptor. A property can override the value serializer that is to be used to serialize the property by specifing either a ValueSerializerAttribute or a TypeConverterAttribute. This method takes these attributes into account when determining the value serializer.
ValueSerializer GetValueSerializerFor(PropertyDescriptor descriptor)
Parameters
descriptor
PropertyDescriptorThe property descriptor for whose property value is being converted
Returns
- ValueSerializer
A value serializer capable of serializing the given property