Méthode | Description | |
---|---|---|
Create ( ) : |
Creates the type
|
|
CreateConstructor ( MethodAttributes attributes = MethodAttributes.Public, IEnumerable |
Creates a constructor
|
|
CreateDefaultConstructor ( MethodAttributes attributes = MethodAttributes.Public ) : IMethodBuilder |
Creates a default constructor
|
|
CreateDefaultProperty ( string name, |
Creates a default property (ex int Property{get;set;}
|
|
CreateField ( string name, |
Creates a field
|
|
CreateMethod ( string name, MethodAttributes attributes = MethodAttributes.Public|MethodAttributes.Virtual, |
Creates a method
|
|
CreateProperty ( string name, |
Creates a property
|
|
ToString ( ) : string |
Writes out the type builder to a readable string
|
|
TypeBuilder ( Assembly assembly, string name, IEnumerable |
Constructor
|
public CreateConstructor ( MethodAttributes attributes = MethodAttributes.Public, IEnumerable |
||
attributes | MethodAttributes | attributes for the constructor (public, private, etc.) |
parameterTypes | IEnumerable |
The types for the parameters |
callingConventions | CallingConventions | The calling convention used |
Résultat | IMethodBuilder |
public CreateDefaultConstructor ( MethodAttributes attributes = MethodAttributes.Public ) : IMethodBuilder | ||
attributes | MethodAttributes | attributes for the constructor (public, private, etc.) |
Résultat | IMethodBuilder |
public CreateDefaultProperty ( string name, |
||
name | string | name of the property |
propertyType | Type of the property | |
attributes | PropertyAttributes | attributes for the property (special name, etc.) |
getMethodAttributes | MethodAttributes | Get method's attributes (public, private, etc.) |
setMethodAttributes | MethodAttributes | Set method's attributes (public, private, etc.) |
parameters | IEnumerable |
Parameter types |
Résultat | IPropertyBuilder |
public CreateField ( string name, |
||
name | string | name of the field |
fieldType | Type of the field | |
attributes | FieldAttributes | attributes for the field (public, private, etc.) |
Résultat |
public CreateMethod ( string name, MethodAttributes attributes = MethodAttributes.Public|MethodAttributes.Virtual, |
||
name | string | Method name |
attributes | MethodAttributes | attributes for the method (public, virtual, etc.) |
returnType | Return type | |
parameterTypes | IEnumerable |
Parameter types |
Résultat | IMethodBuilder |
public CreateProperty ( string name, |
||
name | string | name of the property |
propertyType | Type of the property | |
attributes | PropertyAttributes | attributes for the property (special name, etc.) |
getMethodAttributes | MethodAttributes | Get method's attributes (public, private, etc.) |
setMethodAttributes | MethodAttributes | Set method's attributes (public, private, etc.) |
parameters | IEnumerable |
Parameter types |
Résultat | IPropertyBuilder |
public TypeBuilder ( Assembly assembly, string name, IEnumerable |
||
assembly | Assembly | Assembly to generate the type within |
name | string | name of the type |
interfaces | IEnumerable |
Interfaces that the type implements |
baseClass | Base class for the type | |
attributes | TypeAttributes | attributes for the type (public, private, etc.) |
Résultat | System |