The most common types to convert are to and from a string object. This implementation calls ToString on the object if the object is valid and if the destination type is a string.
Use the context parameter to extract additional information about the environment from which this converter is invoked. This parameter can be nullNothingnullptra null reference (Nothing in Visual Basic), so always check it. Also, properties on the context object can return nullNothingnullptra null reference (Nothing in Visual Basic).
Notes to Inheritors:
Override this method to provide your own conversion requirements.