C# Class FS.Utils.Common.Dynamics

动态创建属性、方法
Afficher le fichier Open project: FarseerNet/Farseer.Net

Méthodes publiques

Méthode Description
CreateClassType ( Type>.Dictionary addPropertys, Type baseType = null ) : Type

创建动态类

CreateClassType ( List addPropertys, Type constructors = null, Type baseType = null ) : Type

创建动态类

Private Methods

Méthode Description
IlGenerator ( ConstructorBuilder ctor ) : void

定义方法体

Method Details

CreateClassType() public static méthode

创建动态类
public static CreateClassType ( Type>.Dictionary addPropertys, Type baseType = null ) : Type
addPropertys Type>.Dictionary Key:属性名称;Value:属性类型
baseType System.Type 继承的父类类型
Résultat System.Type

CreateClassType() public static méthode

创建动态类
public static CreateClassType ( List addPropertys, Type constructors = null, Type baseType = null ) : Type
addPropertys List Key:属性名称;Value:属性类型
constructors System.Type 构造函数参数
baseType System.Type 继承的父类类型
Résultat System.Type