Interface IConvert<T>
Core converter used for converting values of the provided type to and from its text equivalent.
Namespace: ExtendedXmlSerializer.ContentModel.Conversion
Assembly: ExtendedXmlSerializer.dll
Syntax
public interface IConvert<T>
Type Parameters
T
The type to convert. |
Methods
Format(T)
Converts the provided instance into its text equivalent.
Declaration
string Format(T instance)
Parameters
T
instance
The instance to convert into text. |
Returns
System.String
The text that represents the provided instance. |
Parse(String)
Converts the provided text into an instance of the configured convert type.
Declaration
T Parse(string data)
Parameters
System.String
data
The text string to convert into an instance. |
Returns
T
The instance created from the provided text. |