Show / Hide Table of Contents

Class Property<T, V>

Provides typed access to instance property declared in type T.

Inheritance
Object
PropertyBase<V>
Property<T, V>
Implements
IEquatable<PropertyInfo>
IProperty<T, V>
IProperty
IMember<PropertyInfo>
ICustomAttributeProvider
Inherited Members
PropertyBase<V>.GetValue(Object, Object[])
PropertyBase<V>.SetValue(Object, Object, Object[])
PropertyBase<V>.Name
PropertyBase<V>.CanRead
PropertyBase<V>.CanWrite
PropertyBase<V>.Attributes
PropertyBase<V>.PropertyType
PropertyBase<V>.GetAccessors(Boolean)
PropertyBase<V>.GetConstantValue()
PropertyBase<V>.GetGetMethod(Boolean)
PropertyBase<V>.GetIndexParameters()
PropertyBase<V>.GetOptionalCustomModifiers()
PropertyBase<V>.GetRawConstantValue()
PropertyBase<V>.GetRequiredCustomModifiers()
PropertyBase<V>.GetSetMethod(Boolean)
PropertyBase<V>.GetValue(Object, BindingFlags, Binder, Object[], CultureInfo)
PropertyBase<V>.SetValue(Object, Object, BindingFlags, Binder, Object[], CultureInfo)
PropertyBase<V>.DeclaringType
PropertyBase<V>.MemberType
PropertyBase<V>.ReflectedType
PropertyBase<V>.GetCustomAttributes(Boolean)
PropertyBase<V>.GetCustomAttributes(Type, Boolean)
PropertyBase<V>.IsDefined(Type, Boolean)
PropertyBase<V>.MetadataToken
PropertyBase<V>.Module
PropertyBase<V>.GetCustomAttributesData()
PropertyBase<V>.CustomAttributes
PropertyBase<V>.IMember<PropertyInfo>.RuntimeMember
PropertyBase<V>.Equals(PropertyInfo)
PropertyBase<V>.Equals(Object)
PropertyBase<V>.GetHashCode()
PropertyBase<V>.ToString()
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public sealed class Property<T, V> : PropertyBase<V>, IEquatable<PropertyInfo>, IProperty<T, V>, IProperty, IMember<PropertyInfo>, ICustomAttributeProvider
Type Parameters
Name Description
T

Declaring type.

V

Type of property.

Properties

| Improve this Doc View Source

GetMethod

Gets property getter.

Declaration
public Method<MemberGetter<T, V>> GetMethod { get; }
Property Value
Type Description
Method<MemberGetter<T, V>>
| Improve this Doc View Source

Item[T]

Gets or sets property value.

Declaration
public V this[in T this] { get; set; }
Parameters
Type Name Description
T this

this argument.

Property Value
Type Description
V

Property value.

| Improve this Doc View Source

SetMethod

Gets property setter.

Declaration
public Method<MemberSetter<T, V>> SetMethod { get; }
Property Value
Type Description
Method<MemberSetter<T, V>>

Methods

| Improve this Doc View Source

GetValue(Object, out V)

Returns the value of the property supported by a given object.

Declaration
public override bool GetValue(object obj, out V value)
Parameters
Type Name Description
Object obj

The object whose property value will be returned.

V value

An object containing the value of the property reflected by this instance.

Returns
Type Description
Boolean

true, if property value is obtained successfully; otherwise, false.

Overrides
DotNext.Reflection.PropertyBase<V>.GetValue(System.Object, V)
| Improve this Doc View Source

SetValue(Object, V)

Sets the value of the property supported by the given object.

Declaration
public override bool SetValue(object obj, V value)
Parameters
Type Name Description
Object obj

The object whose property value will be set.

V value

The value to assign to the property.

Returns
Type Description
Boolean

true, if property value is modified successfully; otherwise, false.

Overrides
DotNext.Reflection.PropertyBase<V>.SetValue(System.Object, V)

Operators

| Improve this Doc View Source

Implicit(Property<T, V> to MemberGetter<T, V>)

Obtains property getter in the form of the delegate instance.

Declaration
public static implicit operator MemberGetter<T, V>(Property<T, V> property)
Parameters
Type Name Description
Property<T, V> property

The reflected property.

Returns
Type Description
MemberGetter<T, V>
| Improve this Doc View Source

Implicit(Property<T, V> to MemberSetter<T, V>)

Obtains property setter in the form of the delegate instance.

Declaration
public static implicit operator MemberSetter<T, V>(Property<T, V> property)
Parameters
Type Name Description
Property<T, V> property

The reflected property.

Returns
Type Description
MemberSetter<T, V>

Implements

IEquatable<>
IProperty<T, P>
IProperty
IMember<M>
ICustomAttributeProvider

Extension Methods

AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, TimeSpan)
AsyncLockAcquisition.AcquireUpgradeableReadLockAsync<T>(T, CancellationToken)
ExpressionBuilder.Const<T>(T)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>, out R1, out R2)
ObjectExtensions.Decompose<T, R1, R2>(T, Func<T, R1>, Func<T, R2>)
ObjectExtensions.Decompose<T, R1, R2>(T, ValueFunc<T, R1>, ValueFunc<T, R2>)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX