JHProperty.SetValue Method (Object, PropertyInfo, Object)

DCSoft.DBUtilityGeneric

JHPropertySetValue Method (Object, PropertyInfo, Object)
设置指定对象属性 (Property) 的值,如果该属性不存在或不可写,或者设置的值无效,则返回

Namespace: DCSoft.Utility.Reflection
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static void SetValue(
	Object obj,
	PropertyInfo info,
	Object value
)

Parameters

obj
Type: SystemObject
将设置其属性 (Property) 值的对象
info
Type: System.ReflectionPropertyInfo
属性 (Property) 的属性 (Attribute)
value
Type: SystemObject
此属性的新值
See Also