Class ConverterBase<T>
Base converter used as a convenience for extension authors.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ExtendedXmlSerializer.ContentModel.Conversion
Assembly: ExtendedXmlSerializer.dll
Syntax
public abstract class ConverterBase<T> : DecoratedSpecification<TypeInfo>, IConverter<T>, ISpecification<TypeInfo>, IConvert<T>
Type Parameters
T
The type to convert. |
Constructors
ConverterBase()
Creates a new instance.
Declaration
protected ConverterBase()
ConverterBase(ISpecification<TypeInfo>)
Creates a new instance.
Declaration
protected ConverterBase(ISpecification<TypeInfo> specification)
Parameters
ISpecification<System.Reflection.TypeInfo>
specification
The specification that determines whether the created converter handles the candidate type. |
Methods
Format(T)
Used to format the provided instance into its text representation.
Declaration
public abstract string Format(T instance)
Parameters
T
instance
The instance to convert into a text string. |
Returns
System.String
The string representation of the provided instance. |
Implements
Parse(String)
Used to parse the provided text into a new instance of the converter type.
Declaration
public abstract T Parse(string data)
Parameters
System.String
data
The text from which to create a new instance. |
Returns
T
An instance created from the provided text. |