Show / Hide Table of Contents

Class Property<TType, TValue>

A baseline property component that represents an attached property.

Inheritance
System.Object
Property<TType, TValue>
ReferenceProperty<TType, TValue>
StructureProperty<TType, TValue>
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.AttachedProperties
Assembly: ExtendedXmlSerializer.dll
Syntax
public class Property<TType, TValue> : IProperty, ISource<TypeInfo>, ISpecification<TypeInfo>, ITableSource<object, object>, ISpecification<object>, IParameterizedSource<object, object>, IAssignable<object, object>
Type Parameters
TType

The hosting type.

TValue

The property's value.

Constructors

Property(ITableSource<TType, TValue>, Expression<Func<IProperty>>)

Creates a new instance.

Declaration
public Property(ITableSource<TType, TValue> store, Expression<Func<IProperty>> source)
Parameters
ITableSource<TType, TValue> store

System.Linq.Expressions.Expression<System.Func<IProperty>> source

Property(ISpecification<TypeInfo>, ITableSource<TType, TValue>, Expression<Func<IProperty>>)

Creates a new instance.

Declaration
public Property(ISpecification<TypeInfo> specification, ITableSource<TType, TValue> store, Expression<Func<IProperty>> source)
Parameters
ISpecification<System.Reflection.TypeInfo> specification

ITableSource<TType, TValue> store

System.Linq.Expressions.Expression<System.Func<IProperty>> source

Properties

Metadata

The metadata of the property that this attached property represents.

Declaration
public PropertyInfo Metadata { get; }
Property Value
System.Reflection.PropertyInfo

Implements
IProperty.Metadata

Methods

Assign(TType, TValue)

A selector with assignment and a specification.

Declaration
public void Assign(TType key, TValue value)
Parameters
TType key

TValue value

Get()

A general purpose interface that contains (or resolves) a value of an instance of the given type.

Declaration
public TypeInfo Get()
Returns
System.Reflection.TypeInfo

The resulting instance.

Implements
ISource<T>.Get()

Get(TType)

A selector with assignment and a specification.

Declaration
public TValue Get(TType parameter)
Parameters
TType parameter

Returns
TValue

IsSatisfiedBy(TType)

Resolves a condition based on the provided parameter.

Declaration
public bool IsSatisfiedBy(TType parameter)
Parameters
TType parameter

Returns
System.Boolean

IsSatisfiedBy(TypeInfo)

Returns a boolean based on the provided parameter.

Declaration
public bool IsSatisfiedBy(TypeInfo parameter)
Parameters
System.Reflection.TypeInfo parameter

Returns
System.Boolean

The condition based on the provided parameter.

Implements
ISpecification<T>.IsSatisfiedBy(T)

Remove(TType)

A selector with assignment and a specification.

Declaration
public bool Remove(TType key)
Parameters
TType key

Returns
System.Boolean

Explicit Interface Implementations

IAssignable<Object, Object>.Assign(Object, Object)

Declaration
void IAssignable<object, object>.Assign(object key, object value)
Parameters
System.Object key

System.Object value

Implements
IAssignable<TKey, TValue>.Assign(TKey, TValue)

IParameterizedSource<Object, Object>.Get(Object)

Declaration
object IParameterizedSource<object, object>.Get(object parameter)
Parameters
System.Object parameter

Returns
System.Object

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

ITableSource<Object, Object>.Remove(Object)

Declaration
bool ITableSource<object, object>.Remove(object key)
Parameters
System.Object key

Returns
System.Boolean

Implements
ITableSource<TKey, TValue>.Remove(TKey)

ISpecification<Object>.IsSatisfiedBy(Object)

Declaration
bool ISpecification<object>.IsSatisfiedBy(object parameter)
Parameters
System.Object parameter

Returns
System.Boolean

Implements
ISpecification<T>.IsSatisfiedBy(T)

Extension Methods

ExtensionMethods.Return<T, TOut>(T, TOut)
ExtensionMethods.Apply<TKey, TValue>(IAssignable<TKey, TValue>, TKey, TValue)
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)
ExtensionMethodsForConfiguration.GetType(ISource<TypeInfo>)
ExtensionMethodsForConfiguration.GetMember(ISource<MemberInfo>)
ExtensionMethodsForCoreSources.Get<T>(IParameterizedSource<Stream, T>, String)
ExtensionMethodsForCoreSources.Get<T>(IParameterizedSource<TypeInfo, T>, Type)
ExtensionMethodsForCoreSources.Get<T>(IParameterizedSource<Type, T>, TypeInfo)
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.Singleton<T>(ISource<T>)
ExtensionMethodsForCoreSources.ToSelectionDelegate<TParameter, TResult>(IParameterizedSource<TParameter, TResult>)
ExtensionMethodsForCoreSources.ToSourceDelegate<T>(ISource<T>)
ExtensionMethodsForCoreSources.ToDelegate<T>(ISource<T>)
ExtensionMethodsForCoreSources.ToDelegate<TParameter, TResult>(IParameterizedSource<TParameter, TResult>)
ExtensionMethodsForCoreSources.Fix<TParameter, TResult>(IParameterizedSource<TParameter, TResult>, TParameter)
ExtensionMethodsForCoreSpecifications.IfAssigned<TParameter, TResult>(IParameterizedSource<TParameter, TResult>)
ExtensionMethodsForCoreSpecifications.Build<T>(ISpecification<TypeInfo>)
Back to top Generated by DocFX