Show / Hide Table of Contents

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
IAllowedMembersExtension.Blacklist

Whitelist

List of allowed members.

Declaration
public ICollection<MemberInfo> Whitelist { get; }
Property Value
System.Collections.Generic.ICollection<System.Reflection.MemberInfo>

Implements
IAllowedMembersExtension.Whitelist

Methods

Get(IServiceRepository)

Performs the selection.

Declaration
public IServiceRepository Get(IServiceRepository parameter)
Parameters
IServiceRepository parameter

Returns
IServiceRepository

A value of the return type.

Implements
IParameterizedSource<TParameter, TResult>.Get(TParameter)

Explicit Interface Implementations

ICommand<IServices>.Execute(IServices)

Declaration
void ICommand<IServices>.Execute(IServices parameter)
Parameters
IServices parameter

Implements
ICommand<T>.Execute(T)

Extension Methods

ExtensionMethods.Return<T, TOut>(T, TOut)
ExtensionMethods.Apply<T>(ICommand<T>, T)
ExtensionMethods.To<T>(Object)
ExtensionMethods.AsValid<T>(Object, String)
ExtensionMethodsForAttachedProperties.Get<TType, TValue>(TType, Property<TType, TValue>)
ExtensionMethodsForAttachedProperties.Set<TType, TValue>(TType, Property<TType, TValue>, TValue)
ExtensionMethodsForCoreSources.Adapt<T>(IAlteration<T>)
ExtensionMethodsForCoreSources.To<TParameter, TResult, TTo>(IParameterizedSource<TParameter, TResult>, IParameterizedSource<TResult, TTo>)
ExtensionMethodsForCoreSources.In<TFrom, TTo, TResult>(IParameterizedSource<TTo, TResult>, IParameterizedSource<TFrom, TTo>)
ExtensionMethodsForCoreSources.If<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, ISpecification<TParameter>)
ExtensionMethodsForCoreSources.If<TParameter, TResult>(TResult, ISpecification<TParameter>)
ExtensionMethodsForCoreSources.Let<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, ISpecification<TParameter>, IParameterizedSource<TParameter, TResult>)
ExtensionMethodsForCoreSources.Let<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, ISpecification<TParameter>, ISpecification<TResult>, IParameterizedSource<TParameter, TResult>)
ExtensionMethodsForCoreSources.Let<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, ISpecification<TParameter>, TResult)
ExtensionMethodsForCoreSources.Let<TSpecification, TInstance>(TInstance, ISpecification<TSpecification>, TInstance)
ExtensionMethodsForCoreSources.Or<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, IParameterizedSource<TParameter, TResult>)
ExtensionMethodsForCoreSources.Build<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, TParameter)
ExtensionMethodsForCoreSources.FixedSelection<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, TParameter)
ExtensionMethodsForCoreSources.ToSelectionDelegate<TParameter, TResult>(IParameterizedSource<TParameter, TResult>)
ExtensionMethodsForCoreSources.ToDelegate<TParameter, TResult>(IParameterizedSource<TParameter, TResult>)
ExtensionMethodsForCoreSources.Fix<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, TParameter)
ExtensionMethodsForCoreSpecifications.IfAssigned<TParameter, TResult>(IParameterizedSource<TParameter, TResult>)
Back to top Generated by DocFX