Class Property<TType, TValue>
A baseline property component that represents an attached property.
Inheritance
Inherited Members
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
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
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
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
IParameterizedSource<Object, Object>.Get(Object)
Declaration
object IParameterizedSource<object, object>.Get(object parameter)
Parameters
System.Object
parameter
|
Returns
System.Object
|
Implements
ITableSource<Object, Object>.Remove(Object)
Declaration
bool ITableSource<object, object>.Remove(object key)
Parameters
System.Object
key
|
Returns
System.Boolean
|
Implements
ISpecification<Object>.IsSatisfiedBy(Object)
Declaration
bool ISpecification<object>.IsSatisfiedBy(object parameter)
Parameters
System.Object
parameter
|
Returns
System.Boolean
|