Class ConfigurationContainer
Root-level component that is used to create serializers. The configuration container contains all the applied configurations which are then applied when the Create() is called, creating the fully configured serializer. This is considered the entry component for ExtendedXmlSerializer and is used extensively for configuration and resulting creation.
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.Configuration
Assembly: ExtendedXmlSerializer.dll
Syntax
public class ConfigurationContainer : ContextBase, IConfigurationContainer, IContext, IEnumerable<ITypeConfiguration>, IEnumerable
Constructors
ConfigurationContainer()
Creates a instance, using Default as the set of extensions to use.
Declaration
public ConfigurationContainer()
ConfigurationContainer(IExtensionCollection)
Declaration
public ConfigurationContainer(IExtensionCollection extensions)
Parameters
IExtensionCollection
extensions
|
ConfigurationContainer(IRootContext)
ConfigurationContainer(ITypeConfigurationContext)
Declaration
public ConfigurationContainer(ITypeConfigurationContext parent)
Parameters
ITypeConfigurationContext
parent
|
ConfigurationContainer(ISerializerExtension[])
Creates a new instance with the provided set of extensions.
Declaration
public ConfigurationContainer(params ISerializerExtension[] extensions)
Parameters
ISerializerExtension[]
extensions
The initial set of extensions to populate the container. |
Methods
Extend(ISerializerExtension)
Used to extend this container with an extension.
Declaration
public IConfigurationContainer Extend(ISerializerExtension extension)
Parameters
ISerializerExtension
extension
The extension to add to this configuration container. |
Returns
IConfigurationContainer
The configured configuration container with the extension applied. |
Implements
GetEnumerator()
Declaration
public IEnumerator<ITypeConfiguration> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<ITypeConfiguration>
|
Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
|
Implements
System.Collections.IEnumerable.GetEnumerator()