Class Property<V>
Provides typed access to static property.
Inherited Members
Namespace: DotNext.Reflection
Assembly: DotNext.Reflection.dll
Syntax
public sealed class Property<V> : PropertyBase<V>, IEquatable<PropertyInfo>, IProperty<V>, IProperty, IMember<PropertyInfo>, ICustomAttributeProvider
Type Parameters
Name | Description |
---|---|
V | Type of property. |
Properties
| Improve this Doc View SourceGetMethod
Gets property getter.
Declaration
public Method<MemberGetter<V>> GetMethod { get; }
Property Value
Type | Description |
---|---|
Method<MemberGetter<V>> |
SetMethod
Gets property setter.
Declaration
public Method<MemberSetter<V>> SetMethod { get; }
Property Value
Type | Description |
---|---|
Method<MemberSetter<V>> |
Value
Gets or sets property value.
Declaration
public V Value { get; set; }
Property Value
Type | Description |
---|---|
V |
Methods
| Improve this Doc View SourceGetValue(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 | Must be null. |
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 | Must be null. |
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 SourceImplicit(Property<V> to MemberGetter<V>)
Obtains property getter in the form of the delegate instance.
Declaration
public static implicit operator MemberGetter<V>(Property<V> property)
Parameters
Type | Name | Description |
---|---|---|
Property<V> | property | The reflected property. |
Returns
Type | Description |
---|---|
MemberGetter<V> |
Implicit(Property<V> to MemberSetter<V>)
Obtains property setter in the form of the delegate instance.
Declaration
public static implicit operator MemberSetter<V>(Property<V> property)
Parameters
Type | Name | Description |
---|---|---|
Property<V> | property | The reflected property. |
Returns
Type | Description |
---|---|
MemberSetter<V> |
Implements
IEquatable<>
ICustomAttributeProvider