Class PropertyAccessor
Represents the class that defines the methods to access the property, its value and etc.
Inheritance
System.Object
PropertyAccessor
Namespace: Syncfusion.Maui.Data
Assembly: Syncfusion.Maui.Data.dll
Syntax
public class PropertyAccessor : Object
Constructors
PropertyAccessor(PropertyInfo)
Initializes a new instance of PropertyAccessor class.
Declaration
public PropertyAccessor(PropertyInfo propertyInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Reflection.PropertyInfo | propertyInfo | The property info for the property accessor being initialized. |
Properties
PropertyInfo
Gets the information of the property.
Declaration
public PropertyInfo PropertyInfo { get; }
Property Value
Type | Description |
---|---|
System.Reflection.PropertyInfo | The information of the property. |
Methods
GetValue(Object)
Gets the value for the given object.
Declaration
public object GetValue(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object for which the value is to be obtained. |
Returns
Type |
---|
System.Object |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Get method is not defined for this property |
SetValue(Object, Object)
Sets the given value to the given object.
Declaration
public void SetValue(object obj, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object for which the value is to be obtained. |
System.Object | value | The value to be set. |