Class MemberPropertiesExtension
Default serializer extension that is used to configure member properties such as name and ordering.
Inheritance
System.Object
MemberPropertiesExtension
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.ExtensionModel.Content.Members
Assembly: ExtendedXmlSerializer.dll
Syntax
public sealed class MemberPropertiesExtension : ISerializerExtension, IAlteration<IServiceRepository>, IParameterizedSource<IServiceRepository, IServiceRepository>, ICommand<IServices>
Constructors
MemberPropertiesExtension(INames, IParameterizedSource<MemberInfo, Int32>)
Initializes a new instance of the MemberPropertiesExtension class.
Declaration
public MemberPropertiesExtension(INames defaultNames, IParameterizedSource<MemberInfo, int> defaultMemberOrder)
Parameters
INames
defaultNames
The default names. |
IParameterizedSource<System.Reflection.MemberInfo, System.Int32>
defaultMemberOrder
The default member order. |
MemberPropertiesExtension(IDictionary<MemberInfo, String>, IDictionary<MemberInfo, Int32>, INames, IParameterizedSource<MemberInfo, Int32>)
Initializes a new instance of the MemberPropertiesExtension class.
Declaration
public MemberPropertiesExtension(IDictionary<MemberInfo, string> names, IDictionary<MemberInfo, int> order, INames defaultNames, IParameterizedSource<MemberInfo, int> defaultMemberOrder)
Parameters
System.Collections.Generic.IDictionary<System.Reflection.MemberInfo, System.String>
names
The names. |
System.Collections.Generic.IDictionary<System.Reflection.MemberInfo, System.Int32>
order
The order. |
INames
defaultNames
The default names. |
IParameterizedSource<System.Reflection.MemberInfo, System.Int32>
defaultMemberOrder
The default member order. |
Properties
Names
A registry of text names, keyed by member metadata.
Declaration
public IDictionary<MemberInfo, string> Names { get; }
Property Value
System.Collections.Generic.IDictionary<System.Reflection.MemberInfo, System.String>
|
Order
A registry of member order values, keyed on member metadata.
Declaration
public IDictionary<MemberInfo, int> Order { get; }
Property Value
System.Collections.Generic.IDictionary<System.Reflection.MemberInfo, System.Int32>
|
Methods
Get(IServiceRepository)
Performs the selection.
Declaration
public IServiceRepository Get(IServiceRepository parameter)
Parameters
IServiceRepository
parameter
|
Returns
IServiceRepository
A value of the return type. |
Implements
Explicit Interface Implementations
ICommand<IServices>.Execute(IServices)
Declaration
void ICommand<IServices>.Execute(IServices parameter)
Parameters
IServices
parameter
|