Class AllowedMembersExtension
A default extension that is used to determine which members are allowed to be considered for serialization and deserialization.
Inheritance
System.Object
AllowedMembersExtension
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 AllowedMembersExtension : IAllowedMembersExtension, ISerializerExtension, IAlteration<IServiceRepository>, IParameterizedSource<IServiceRepository, IServiceRepository>, ICommand<IServices>
Constructors
AllowedMembersExtension(IMetadataSpecification)
Creates a new instance.
Declaration
public AllowedMembersExtension(IMetadataSpecification specification)
Parameters
IMetadataSpecification
specification
|
AllowedMembersExtension(IMetadataSpecification, ICollection<MemberInfo>, ICollection<MemberInfo>)
Creates a new instance.
Declaration
public AllowedMembersExtension(IMetadataSpecification specification, ICollection<MemberInfo> blacklist, ICollection<MemberInfo> whitelist)
Parameters
IMetadataSpecification
specification
|
System.Collections.Generic.ICollection<System.Reflection.MemberInfo>
blacklist
|
System.Collections.Generic.ICollection<System.Reflection.MemberInfo>
whitelist
|
Properties
Blacklist
List of prohibited members.
Declaration
public ICollection<MemberInfo> Blacklist { get; }
Property Value
System.Collections.Generic.ICollection<System.Reflection.MemberInfo>
|
Implements
Whitelist
List of allowed members.
Declaration
public ICollection<MemberInfo> Whitelist { get; }
Property Value
System.Collections.Generic.ICollection<System.Reflection.MemberInfo>
|
Implements
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
|