C# Class JinianNet.JNTemplate.Dynamic.DynamicHelper

动态辅助类
Exibir arquivo Open project: jiniannet/jntemplate

Private Properties

Property Type Description

Public Methods

Method Description
ExcuteMethod ( Object container, String methodName, Object args ) : Object

动态执行方法

GetPropertyOrField ( Object value, String propertyName ) : Object

动态获取属性或字段

ToIEnumerable ( Object dataSource ) : IEnumerable

将对象转换为IEnumerable

Method Details

ExcuteMethod() public static method

动态执行方法
public static ExcuteMethod ( Object container, String methodName, Object args ) : Object
container Object 对象
methodName String 方法名
args Object 实参
return Object

GetPropertyOrField() public static method

动态获取属性或字段
public static GetPropertyOrField ( Object value, String propertyName ) : Object
value Object 对象
propertyName String 属性或字段名
return Object

ToIEnumerable() public static method

将对象转换为IEnumerable
public static ToIEnumerable ( Object dataSource ) : IEnumerable
dataSource Object 源对象
return IEnumerable