Class DefaultMemberOrder
Default order selector that looks for a System.Xml.Serialization.XmlElementAttribute.Order and if not specified, uses the System.Reflection.MemberInfo.MetadataToken.
Inheritance
System.Object
DefaultMemberOrder
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.Xml
Assembly: ExtendedXmlSerializer.dll
Syntax
public sealed class DefaultMemberOrder : IParameterizedSource<MemberInfo, int>
Constructors
DefaultMemberOrder(Func<MemberInfo, XmlElementAttribute>, Func<MemberInfo, List<MemberInfo>>)
Creates a new instance.
Declaration
public DefaultMemberOrder(Func<MemberInfo, XmlElementAttribute> attribute, Func<MemberInfo, List<MemberInfo>> members)
Parameters
System.Func<System.Reflection.MemberInfo, System.Xml.Serialization.XmlElementAttribute>
attribute
|
System.Func<System.Reflection.MemberInfo, System.Collections.Generic.List<System.Reflection.MemberInfo>>
members
|
Properties
Default
The default instance.
Declaration
public static DefaultMemberOrder Default { get; }
Property Value
DefaultMemberOrder
|
Methods
Get(MemberInfo)
Performs the selection.
Declaration
public int Get(MemberInfo parameter)
Parameters
System.Reflection.MemberInfo
parameter
|
Returns
System.Int32
A value of the return type. |