Method | Description | |
---|---|---|
AddDefaultConstructor ( this targetType ) : Mono.Cecil.MethodDefinition |
Adds a default constructor to the target type.
|
|
AddDefaultConstructor ( this targetType, System parentType ) : Mono.Cecil.MethodDefinition |
Adds a default constructor to the target type.
|
|
AddProperty ( this typeDef, string propertyName, System propertyType ) : void |
Adds a rewritable property to the
|
|
AddProperty ( this typeDef, string propertyName, |
Adds a rewritable property to the
|
|
AddProperty ( this typeDef, string propertyName, |
Adds a rewriteable property to the
|
|
DefineMethod ( this typeDef, string methodName, Mono attributes, System returnType, System parameterTypes, System genericParameterTypes ) : Mono.Cecil.MethodDefinition |
Adds a new method to the
|
|
GetDefaultConstructor ( this targetType ) : Mono.Cecil.MethodDefinition |
Returns the first constructor defined on the target type.
|
|
Implements ( this type, |
Tests if a TypeDefinition implements directly a certain TypeReference.
|
Method | Description | |
---|---|---|
AddPropertyGetter ( |
Creates a property getter method implementation with the propertyType as the return type.
|
|
AddPropertySetter ( |
Creates a property setter method implementation with the propertyType as the setter parameter.
|
|
GetBackingField ( string fieldName, Mono.Cecil.TypeDefinition typeDef, |
Resolves the backing field for a generic type declaration.
|
public static AddDefaultConstructor ( this targetType ) : Mono.Cecil.MethodDefinition | ||
targetType | this | The type that will contain the default constructor. |
return | Mono.Cecil.MethodDefinition |
public static AddDefaultConstructor ( this targetType, System parentType ) : Mono.Cecil.MethodDefinition | ||
targetType | this | The type that will contain the default constructor. |
parentType | System | The base class that contains the default constructor that will be used for constructor chaining.. |
return | Mono.Cecil.MethodDefinition |
public static AddProperty ( this typeDef, string propertyName, System propertyType ) : void | ||
typeDef | this | The target type that will hold the newly-created property. |
propertyName | string | The name of the property itself. |
propertyType | System | The |
return | void |
public static AddProperty ( this typeDef, string propertyName, |
||
typeDef | this | The target type that will hold the newly-created property. |
propertyName | string | The name of the property itself. |
propertyType | The |
|
return | void |
public static AddProperty ( this typeDef, string propertyName, |
||
typeDef | this | The target type that will hold the newly-created property. |
propertyName | string | The name of the property itself. |
propertyType | The |
|
getter | Mono.Cecil.MethodDefinition | The property getter method. |
setter | Mono.Cecil.MethodDefinition | The property setter method. |
return | void |
public static DefineMethod ( this typeDef, string methodName, Mono attributes, System returnType, System parameterTypes, System genericParameterTypes ) : Mono.Cecil.MethodDefinition | ||
typeDef | this | The type that will hold the newly-created method. |
methodName | string | The name to be given to the new method. |
attributes | Mono | The |
returnType | System | The method return type. |
parameterTypes | System | The list of argument types that will be used to define the method signature. |
genericParameterTypes | System | The list of generic argument types that will be used to define the method signature. |
return | Mono.Cecil.MethodDefinition |
public static GetDefaultConstructor ( this targetType ) : Mono.Cecil.MethodDefinition | ||
targetType | this | The type to search for a default constructor |
return | Mono.Cecil.MethodDefinition |
public static Implements ( this type, |
||
type | this | The |
interfaceType | The |
|
return | bool |