Show / Hide Table of Contents

Class Property<TValue>

Provides typed access to static property.

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

Type of property.

Properties

| Improve this Doc View Source

GetMethod

Gets property getter.

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

SetMethod

Gets property setter.

Declaration
public Method<MemberSetter<TValue>> SetMethod { get; }
Property Value
Type Description
Method<MemberSetter<TValue>>
| Improve this Doc View Source

Value

Gets or sets property value.

Declaration
public TValue Value { get; set; }
Property Value
Type Description
TValue

Methods

| Improve this Doc View Source

GetValue(Object, out TValue)

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

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

Must be null.

TValue 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<TValue>.GetValue(System.Object, TValue)
| Improve this Doc View Source

SetValue(Object, TValue)

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

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

Must be null.

TValue 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<TValue>.SetValue(System.Object, TValue)

Operators

| Improve this Doc View Source

Implicit(Property<TValue> to MemberGetter<TValue>)

Obtains property getter in the form of the delegate instance.

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

The reflected property.

Returns
Type Description
MemberGetter<TValue>
| Improve this Doc View Source

Implicit(Property<TValue> to MemberSetter<TValue>)

Obtains property setter in the form of the delegate instance.

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

The reflected property.

Returns
Type Description
MemberSetter<TValue>

Implements

System.IEquatable<T>
IProperty<TValue>
IProperty
IMember<TMember>
System.Reflection.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)
ObjectExtensions.GetUserData<T>(T)
ObjectExtensions.IsOneOf<T>(T, IEnumerable<T>)
ObjectExtensions.IsOneOf<T>(T, T[])
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>, out TResult1, out TResult2)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, Func<T, TResult1>, Func<T, TResult2>)
ObjectExtensions.Decompose<T, TResult1, TResult2>(T, ValueFunc<T, TResult1>, ValueFunc<T, TResult2>)
ObjectExtensions.As<T>(T)
CustomAttribute.IsDefined<TAttribute>(ICustomAttributeProvider, Boolean)
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)
ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX