ReflectionSetPropertyValue(Object, PropertyInfo, Object, Boolean) Method

Set the value on a property.

Definition

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

Parameters

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

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