C# Class Rebel.Framework.Localization.Support.ObjectHelper

显示文件 Open project: RebelCMS/rebelcmsxu5

Public Methods

Method Description
Eval ( object container, string propertyOrField ) : object
ParamsToParameterSet ( object data, bool addWithIndex = false ) : ParameterSet

Converts an object to a parameter set.

Method Details

Eval() public static method

public static Eval ( object container, string propertyOrField ) : object
container object
propertyOrField string
return object

ParamsToParameterSet() public static method

Converts an object to a parameter set.
public static ParamsToParameterSet ( object data, bool addWithIndex = false ) : ParameterSet
data object The object to convert.
addWithIndex bool if set to true values are also added by index, e.g. new { Test = 10 } will be added both as "Test" and "0".
return ParameterSet