Show / Hide Table of Contents

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.

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)
ExtensionMethodsForCoreSources.If<TParameter, TResult>(TResult, ISpecification<TParameter>)
ExtensionMethodsForCoreSources.Let<TSpecification, TInstance>(TInstance, ISpecification<TSpecification>, TInstance)
Back to top Generated by DocFX