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 override string? ConvertToString(object value, IValueSerializerContext context)
Parameters
valueobjectThe value to convert to a string
contextIValueSerializerContextContext information
Returns
- string
A string representation of value