JHProperty.GetValue Method (Object, String)

DCSoft.DBUtilityGeneric

JHPropertyGetValue Method (Object, String)
获取指定对象指定属性 (Property) 名的值,如果该属性不存在或不可读则返回 null

Namespace: DCSoft.Utility.Reflection
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public static Object GetValue(
	Object obj,
	string propertyName
)

Parameters

obj
Type: SystemObject
要获取其属性 (Property) 值的对象
propertyName
Type: SystemString
属性 (Property) 名,区分大小写

Return Value

Type: Object
返回该对象对应的属性的值
See Also