Class ReflectionPropertyInfo
Implements reflection based property info
Inheritance
System.Object
ReflectionPropertyInfo
Implements
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: EmptyKeys.UserInterface.Data
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class ReflectionPropertyInfo : IPropertyInfo
Constructors
ReflectionPropertyInfo(Type, String)
Initializes a new instance of the ReflectionPropertyInfo class.
Declaration
public ReflectionPropertyInfo(Type dataType, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.Type | dataType | Type of the data. |
System.String | propertyName | Name of the property. |
Properties
IsResolved
Gets a value indicating whether this instance is resolved.
Declaration
public bool IsResolved { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
PropertyType
Gets the type of the property.
Declaration
public Type PropertyType { get; }
Property Value
Type | Description |
---|---|
System.Type | The type of the property. |
Methods
GetValue(Object)
Gets the value.
Declaration
public object GetValue(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object. |
Returns
Type | Description |
---|---|
System.Object |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Property Info is null. |
GetValue(Object, Object[])
Gets the value.
Declaration
public object GetValue(object obj, object[] index)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object. |
System.Object[] | index | The index. |
Returns
Type | Description |
---|---|
System.Object |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Property Info is null. |
SetValue(Object, Object)
Sets the value.
Declaration
public void SetValue(object obj, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object. |
System.Object | value | The value. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Property Info is null. |
SetValue(Object, Object, Object[])
Sets the value.
Declaration
public void SetValue(object obj, object value, object[] index)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object. |
System.Object | value | The value. |
System.Object[] | index | The index. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Property Info is null. |