Show / Hide Table of Contents

Class ConverterBase<T>

Base converter used as a convenience for extension authors.

Inheritance
System.Object
DecoratedSpecification<System.Reflection.TypeInfo>
ConverterBase<T>
Converter<T>
DateTimeConverter
Inherited Members
DecoratedSpecification<TypeInfo>.IsSatisfiedBy(TypeInfo)
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
IConvert<T>.Format(T)

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.

Implements
IConvert<T>.Parse(String)

Extension Methods

ExtensionMethods.Return<T, TOut>(T, TOut)
ExtensionMethods.To<T>(Object)
ExtensionMethods.AsValid<T>(Object, String)
ExtensionMethodsForAttachedProperties.Get<TType, TValue>(TType, Property<TType, TValue>)
ExtensionMethodsForAttachedProperties.Set<TType, TValue>(TType, Property<TType, TValue>, TValue)
ExtensionMethodsForContentModel.Adapt<T>(IConverter<T>)
ExtensionMethodsForCoreSources.If<TParameter, TResult>(TResult, ISpecification<TParameter>)
ExtensionMethodsForCoreSources.Let<TSpecification, TInstance>(TInstance, ISpecification<TSpecification>, TInstance)
ExtensionMethodsForCoreSpecifications.ToDelegate<T>(ISpecification<T>)
ExtensionMethodsForCoreSpecifications.Build<T>(ISpecification<TypeInfo>)
ExtensionMethodsForCoreSpecifications.Build<T>(ISpecification<T>, T)
ExtensionMethodsForCoreSpecifications.Fix<T>(ISpecification<T>, T)
ExtensionMethodsForCoreSpecifications.Any<T>(ISpecification<T>, T[])
ExtensionMethodsForCoreSpecifications.Or<T>(ISpecification<T>, ISpecification<T>[])
ExtensionMethodsForCoreSpecifications.And<T>(ISpecification<T>, ISpecification<T>[])
ExtensionMethodsForCoreSpecifications.Inverse<T>(ISpecification<T>)
ExtensionMethodsForCoreSpecifications.AdaptForNull<T>(ISpecification<T>)
ExtensionMethodsForCoreSpecifications.Adapt<T>(ISpecification<T>)
Back to top Generated by DocFX