ReflectionGetPropertyValue(Object, String, Boolean) Method

Get the value of a property with the same name.

Definition

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

Parameters

obj  Object
Object to evaluate.
propertyName  String
Property name.
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.

See Also