ReflectionGetPropertyValue(Object, PropertyInfo, Boolean) Method

Gets the value of a property.

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static Object GetPropertyValue(
	Object obj,
	PropertyInfo property,
	bool useAttributes
)

Parameters

obj  Object
Object to evaluate.
property  PropertyInfo
Property information.
useAttributes  Boolean
Indicates whether attributes should be used.

Return Value

Object
Object with the value of a property with the same name.

Remarks

Property attributes:

- ColumnAttribute: identifies the data column to which it is mapped.

- DataTypeAttribute: identifies the type of data.

- EnumValueTypeAttribute: determines the type of value used in the enumeration property.

Exceptions

See Also