Class PropertyInfoExtensions
Class that provides the extension methods for the property info.
Inheritance
System.Object
PropertyInfoExtensions
Namespace: Syncfusion.DataSource.Extensions
Assembly: Syncfusion.DataSource.WinForms.dll
Syntax
public static class PropertyInfoExtensions : Object
Methods
GetPropertyInfo(PropertyInfoCollection, String)
Gets the property info from the given property info collection and the column name.
Declaration
public static PropertyInfo GetPropertyInfo(this PropertyInfoCollection propertyInfoCollection, string columnName)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyInfoCollection | propertyInfoCollection | The property info collection. |
| System.String | columnName | The column name whose property info is to be obtained. |
Returns
| Type | Description |
|---|---|
| System.Reflection.PropertyInfo | The property info of the given property info collection and the column name. |
GetValue(PropertyInfo, Object)
Gets the value for the given property info and the record.
Declaration
public static object GetValue(this PropertyInfo propertyInfo, object record)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Reflection.PropertyInfo | propertyInfo | The property info whose value is to be determined. |
| System.Object | record | The object whose corresponding value for the given property is to be obtained. |
Returns
| Type | Description |
|---|---|
| System.Object | The value for the given property info and the record. |
SetValue(PropertyInfo, Object, Object)
Sets the value for the corresponding object available in the PropertyInfo.
Declaration
public static void SetValue(this PropertyInfo propertyInfo, object record, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Reflection.PropertyInfo | propertyInfo | Represents the property info. |
| System.Object | record | Represents the record. |
| System.Object | value | Represents the value. |