Class ExtensionMethodsForRegistration
A set of extension methods to assist in registration operations for the container, its types, and/or its type's members. Registrations can be serializers or converters to change the default behavior on how these components emit or read in their content.
Inheritance
Inherited Members
Namespace: ExtendedXmlSerializer
Assembly: ExtendedXmlSerializer.dll
Syntax
public static class ExtensionMethodsForRegistration
Methods
Register(IConfigurationContainer, ISerializationSurrogateProvider)
Registers the provided surrogate provider with the provided configuration container container. The surrogate provider will be used to query for selecting a serializer if it contains one that satisfies the requested type.
Declaration
public static IConfigurationContainer Register(this IConfigurationContainer this, ISerializationSurrogateProvider provider)
Parameters
IConfigurationContainer
this
The configuration container to configure. |
System.Runtime.Serialization.ISerializationSurrogateProvider
provider
The provider to register. |
Returns
IConfigurationContainer
The configured configuration container. |
See Also
Register<T>(IConfigurationContainer, IConverter<T>)
Declaration
[Obsolete("This method is deprecated and will be removed in a future release. Use IConfigurationContainer.Type<T>().Register().Converter().Using(IConverter) instead.")]
public static IConfigurationContainer Register<T>(this IConfigurationContainer this, IConverter<T> converter)
Parameters
IConfigurationContainer
this
|
IConverter<T>
converter
|
Returns
IConfigurationContainer
|
Type Parameters
T
|
Register<T>(IConfigurationContainer, Func<T, String>, Func<String, T>)
Declaration
[Obsolete("This method is deprecated and will be removed in a future release. Use IConfigurationContainer.Type<T>().Register().Converter().Calling() instead.")]
public static IConfigurationContainer Register<T>(this IConfigurationContainer this, Func<T, string> format, Func<string, T> parse)
Parameters
IConfigurationContainer
this
|
System.Func<T, System.String>
format
|
System.Func<System.String, T>
parse
|
Returns
IConfigurationContainer
|
Type Parameters
T
|
Register<T>(ITypeConfiguration<T>)
Establishes a registration context for the specified type configuration. From there, you can perform registration operations on serializers and converters for the type.
Declaration
public static TypeRegistrationContext<T> Register<T>(this ITypeConfiguration<T> this)
Parameters
ITypeConfiguration<T>
this
The type configuration to configure. |
Returns
TypeRegistrationContext<T>
A type registration context. |
Type Parameters
T
The type under configuration. |
Register<T>(ITypeConfiguration<T>, ISerializer)
Declaration
[Obsolete("This method is considered deprecated and will be removed in a future release. Use ITypeConfiguration<T>.Register().Serializer().Of(ISerializer) instead.")]
public static ITypeConfiguration<T> Register<T>(this ITypeConfiguration<T> this, ISerializer serializer)
Parameters
ITypeConfiguration<T>
this
|
ISerializer
serializer
|
Returns
ITypeConfiguration<T>
|
Type Parameters
T
|
Register<T>(ITypeConfiguration<T>, ISerializer<T>)
Declaration
[Obsolete("This method is considered deprecated and will be removed in a future release. Use ITypeConfiguration<T>.Register().Serializer().Of(ISerializer<T>) instead.")]
public static ITypeConfiguration<T> Register<T>(this ITypeConfiguration<T> this, ISerializer<T> serializer)
Parameters
ITypeConfiguration<T>
this
|
ISerializer<T>
serializer
|
Returns
ITypeConfiguration<T>
|
Type Parameters
T
|
Register<T>(ITypeConfiguration<T>, Type)
Declaration
[Obsolete("This method is considered deprecated and will be removed in a future release. Use ITypeConfiguration<T>.Register().Serializer().Of(Type) instead.")]
public static ITypeConfiguration<T> Register<T>(this ITypeConfiguration<T> this, Type serializerType)
Parameters
ITypeConfiguration<T>
this
|
System.Type
serializerType
|
Returns
ITypeConfiguration<T>
|
Type Parameters
T
|
Register<T, TSerializer>(IConfigurationContainer)
Declaration
[Obsolete("This method is considered deprecated and will be removed in a future release. Use ITypeConfiguration<T>.Register().Serializer().Of<TSerializer>() instead.")]
public static ITypeConfiguration<T> Register<T, TSerializer>(this IConfigurationContainer this)
where TSerializer : ISerializer<T>
Parameters
IConfigurationContainer
this
|
Returns
ITypeConfiguration<T>
|
Type Parameters
T
|
TSerializer
|
Register<T, TMember>(IMemberConfiguration<T, TMember>)
Establishes a registration context for the specified member configuration. From there, you can perform registration operations on serializers and converters for the type.
Declaration
public static MemberRegistrationContext<T, TMember> Register<T, TMember>(this IMemberConfiguration<T, TMember> this)
Parameters
IMemberConfiguration<T, TMember>
this
The member configuration to configure. |
Returns
MemberRegistrationContext<T, TMember>
The member registration context. |
Type Parameters
T
The member's containing type. |
TMember
The member's value type. |
Register<T, TMember>(IMemberConfiguration<T, TMember>, ISerializer)
Declaration
[Obsolete("This method is considered deprecated and will be removed in a future release. Use IMemberConfiguration<T, TMember>.Register().Serializer().Of(ISerializer) instead.")]
public static IMemberConfiguration<T, TMember> Register<T, TMember>(this IMemberConfiguration<T, TMember> this, ISerializer serializer)
Parameters
IMemberConfiguration<T, TMember>
this
|
ISerializer
serializer
|
Returns
IMemberConfiguration<T, TMember>
|
Type Parameters
T
|
TMember
|
Register<T, TMember>(IMemberConfiguration<T, TMember>, ISerializer<TMember>)
Declaration
[Obsolete("This method is considered deprecated and will be removed in a future release. Use IMemberConfiguration<T, TMember>.Register().Serializer().Of(ISerializer<T>) instead.")]
public static IMemberConfiguration<T, TMember> Register<T, TMember>(this IMemberConfiguration<T, TMember> this, ISerializer<TMember> serializer)
Parameters
IMemberConfiguration<T, TMember>
this
|
ISerializer<TMember>
serializer
|
Returns
IMemberConfiguration<T, TMember>
|
Type Parameters
T
|
TMember
|
Register<T, TMember>(IMemberConfiguration<T, TMember>, Type)
Declaration
[Obsolete("This method is considered deprecated and will be removed in a future release. Use IMemberConfiguration<T, TMember>.Register().Serializer().Of(Type) instead.")]
public static IMemberConfiguration<T, TMember> Register<T, TMember>(this IMemberConfiguration<T, TMember> this, Type serializerType)
Parameters
IMemberConfiguration<T, TMember>
this
|
System.Type
serializerType
|
Returns
IMemberConfiguration<T, TMember>
|
Type Parameters
T
|
TMember
|
Unregister<T>(IConfigurationContainer, IConverter<T>)
Declaration
[Obsolete("This method is deprecated and will be removed in a future release. Use IConfigurationContainer.Type<T>().Register().Converter().Without(IConverter) instead.")]
public static bool Unregister<T>(this IConfigurationContainer this, IConverter<T> converter)
Parameters
IConfigurationContainer
this
|
IConverter<T>
converter
|
Returns
System.Boolean
|
Type Parameters
T
|
Unregister<T>(ITypeConfiguration<T>)
Declaration
[Obsolete("This method is considered deprecated and will be removed in a future release. Use ITypeConfiguration<T>.Register().Serializer().None() instead.")]
public static ITypeConfiguration<T> Unregister<T>(this ITypeConfiguration<T> this)
Parameters
ITypeConfiguration<T>
this
|
Returns
ITypeConfiguration<T>
|
Type Parameters
T
|
Unregister<T, TMember>(IMemberConfiguration<T, TMember>)
Declaration
[Obsolete("This method is considered deprecated and will be removed in a future release. Use IMemberConfiguration<T, TMember>.Register().Serializer().None() instead.")]
public static IMemberConfiguration<T, TMember> Unregister<T, TMember>(this IMemberConfiguration<T, TMember> this)
Parameters
IMemberConfiguration<T, TMember>
this
|
Returns
IMemberConfiguration<T, TMember>
|
Type Parameters
T
|
TMember
|