Method ConvertToString
ConvertToString(object, IValueSerializerContext)
Converts the given value to a string for use in serialization. This method should only be called if CanConvertToString returns true for the given value.
public virtual string ConvertToString(object value, IValueSerializerContext context)
Parameters
value
objectThe value to convert to a string
context
IValueSerializerContextContext information
Returns
- string
A string representation of value