类库说明文档
![]() | JHPropertyGetValue Method (Object, PropertyInfo) |
获取指定对象属性 (Property) 的值,如果该属性不存在或不可读则返回 null
Namespace: DCSoft.Utility.Reflection
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)

C#
public static Object GetValue( Object obj, PropertyInfo info )
Parameters
- obj
- Type: SystemObject
要获取其属性 (Property) 值的对象 - info
- Type: System.ReflectionPropertyInfo
属性 (Property) 的属性 (Attribute)
Return Value
Type: Object返回该对象对应的属性的值
