C# Class System.Reflection.Emit.TypeBuilder

Inheritance: System.Type
Show file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
AddInterfaceImplementation ( System interfaceType ) : void
CreateTypeInfo ( ) : System.Reflection.TypeInfo
DefineConstructor ( System attributes, System callingConvention, System parameterTypes ) : System.Reflection.Emit.ConstructorBuilder
DefineConstructor ( System attributes, System callingConvention, System parameterTypes, System requiredCustomModifiers, System optionalCustomModifiers ) : System.Reflection.Emit.ConstructorBuilder
DefineDefaultConstructor ( System attributes ) : System.Reflection.Emit.ConstructorBuilder
DefineEvent ( string name, System attributes, System eventtype ) : System.Reflection.Emit.EventBuilder
DefineField ( string fieldName, System type, System attributes ) : System.Reflection.Emit.FieldBuilder
DefineField ( string fieldName, System type, System requiredCustomModifiers, System optionalCustomModifiers, System attributes ) : System.Reflection.Emit.FieldBuilder
DefineGenericParameters ( ) : System.Reflection.Emit.GenericTypeParameterBuilder[]
DefineInitializedData ( string name, byte data, System attributes ) : System.Reflection.Emit.FieldBuilder
DefineMethod ( string name, System attributes ) : System.Reflection.Emit.MethodBuilder
DefineMethod ( string name, System attributes, System callingConvention ) : System.Reflection.Emit.MethodBuilder
DefineMethod ( string name, System attributes, System returnType, System parameterTypes ) : System.Reflection.Emit.MethodBuilder
DefineMethod ( string name, System attributes, System callingConvention, System returnType, System parameterTypes ) : System.Reflection.Emit.MethodBuilder
DefineMethod ( string name, System attributes, System callingConvention, System returnType, System returnTypeRequiredCustomModifiers, System returnTypeOptionalCustomModifiers, System parameterTypes, System parameterTypeRequiredCustomModifiers, System parameterTypeOptionalCustomModifiers ) : System.Reflection.Emit.MethodBuilder
DefineMethodOverride ( System methodInfoBody, System methodInfoDeclaration ) : void
DefineNestedType ( string name ) : System.Reflection.Emit.TypeBuilder
DefineNestedType ( string name, System attr ) : System.Reflection.Emit.TypeBuilder
DefineNestedType ( string name, System attr, System parent ) : System.Reflection.Emit.TypeBuilder
DefineNestedType ( string name, System attr, System parent, System packSize ) : System.Reflection.Emit.TypeBuilder
DefineNestedType ( string name, System attr, System parent, System packSize, int typeSize ) : System.Reflection.Emit.TypeBuilder
DefineNestedType ( string name, System attr, System parent, int typeSize ) : System.Reflection.Emit.TypeBuilder
DefineProperty ( string name, System attributes, System returnType, System parameterTypes ) : System.Reflection.Emit.PropertyBuilder
DefineProperty ( string name, System attributes, System callingConvention, System returnType, System parameterTypes ) : System.Reflection.Emit.PropertyBuilder
DefineProperty ( string name, System attributes, System returnType, System returnTypeRequiredCustomModifiers, System returnTypeOptionalCustomModifiers, System parameterTypes, System parameterTypeRequiredCustomModifiers, System parameterTypeOptionalCustomModifiers ) : System.Reflection.Emit.PropertyBuilder
DefineProperty ( string name, System attributes, System callingConvention, System returnType, System returnTypeRequiredCustomModifiers, System returnTypeOptionalCustomModifiers, System parameterTypes, System parameterTypeRequiredCustomModifiers, System parameterTypeOptionalCustomModifiers ) : System.Reflection.Emit.PropertyBuilder
DefineTypeInitializer ( ) : System.Reflection.Emit.ConstructorBuilder
DefineUninitializedData ( string name, int size, System attributes ) : System.Reflection.Emit.FieldBuilder
GetArrayRank ( ) : int
GetConstructor ( System type, System constructor ) : System.Reflection.ConstructorInfo
GetElementType ( ) : Type
GetField ( System type, System field ) : System.Reflection.FieldInfo
GetGenericParameterConstraints ( ) : System.Type[]
GetGenericTypeDefinition ( ) : System.Type
GetMethod ( System type, System method ) : System.Reflection.MethodInfo
IsAssignableFrom ( System typeInfo ) : bool
IsCreated ( ) : bool
MakeArrayType ( ) : System.Type
MakeArrayType ( int rank ) : System.Type
MakeByRefType ( ) : System.Type
MakeGenericType ( ) : System.Type
MakePointerType ( ) : System.Type
SetCustomAttribute ( System customBuilder ) : void
SetCustomAttribute ( System con, byte binaryAttribute ) : void
SetParent ( System parent ) : void
ToString ( ) : string

Private Methods

Method Description
TypeBuilder ( )

Method Details

AddInterfaceImplementation() public method

public AddInterfaceImplementation ( System interfaceType ) : void
interfaceType System
return void

CreateTypeInfo() public method

public CreateTypeInfo ( ) : System.Reflection.TypeInfo
return System.Reflection.TypeInfo

DefineConstructor() public method

public DefineConstructor ( System attributes, System callingConvention, System parameterTypes ) : System.Reflection.Emit.ConstructorBuilder
attributes System
callingConvention System
parameterTypes System
return System.Reflection.Emit.ConstructorBuilder

DefineConstructor() public method

public DefineConstructor ( System attributes, System callingConvention, System parameterTypes, System requiredCustomModifiers, System optionalCustomModifiers ) : System.Reflection.Emit.ConstructorBuilder
attributes System
callingConvention System
parameterTypes System
requiredCustomModifiers System
optionalCustomModifiers System
return System.Reflection.Emit.ConstructorBuilder

DefineDefaultConstructor() public method

public DefineDefaultConstructor ( System attributes ) : System.Reflection.Emit.ConstructorBuilder
attributes System
return System.Reflection.Emit.ConstructorBuilder

DefineEvent() public method

public DefineEvent ( string name, System attributes, System eventtype ) : System.Reflection.Emit.EventBuilder
name string
attributes System
eventtype System
return System.Reflection.Emit.EventBuilder

DefineField() public method

public DefineField ( string fieldName, System type, System attributes ) : System.Reflection.Emit.FieldBuilder
fieldName string
type System
attributes System
return System.Reflection.Emit.FieldBuilder

DefineField() public method

public DefineField ( string fieldName, System type, System requiredCustomModifiers, System optionalCustomModifiers, System attributes ) : System.Reflection.Emit.FieldBuilder
fieldName string
type System
requiredCustomModifiers System
optionalCustomModifiers System
attributes System
return System.Reflection.Emit.FieldBuilder

DefineGenericParameters() public method

public DefineGenericParameters ( ) : System.Reflection.Emit.GenericTypeParameterBuilder[]
return System.Reflection.Emit.GenericTypeParameterBuilder[]

DefineInitializedData() public method

public DefineInitializedData ( string name, byte data, System attributes ) : System.Reflection.Emit.FieldBuilder
name string
data byte
attributes System
return System.Reflection.Emit.FieldBuilder

DefineMethod() public method

public DefineMethod ( string name, System attributes ) : System.Reflection.Emit.MethodBuilder
name string
attributes System
return System.Reflection.Emit.MethodBuilder

DefineMethod() public method

public DefineMethod ( string name, System attributes, System callingConvention ) : System.Reflection.Emit.MethodBuilder
name string
attributes System
callingConvention System
return System.Reflection.Emit.MethodBuilder

DefineMethod() public method

public DefineMethod ( string name, System attributes, System returnType, System parameterTypes ) : System.Reflection.Emit.MethodBuilder
name string
attributes System
returnType System
parameterTypes System
return System.Reflection.Emit.MethodBuilder

DefineMethod() public method

public DefineMethod ( string name, System attributes, System callingConvention, System returnType, System parameterTypes ) : System.Reflection.Emit.MethodBuilder
name string
attributes System
callingConvention System
returnType System
parameterTypes System
return System.Reflection.Emit.MethodBuilder

DefineMethod() public method

public DefineMethod ( string name, System attributes, System callingConvention, System returnType, System returnTypeRequiredCustomModifiers, System returnTypeOptionalCustomModifiers, System parameterTypes, System parameterTypeRequiredCustomModifiers, System parameterTypeOptionalCustomModifiers ) : System.Reflection.Emit.MethodBuilder
name string
attributes System
callingConvention System
returnType System
returnTypeRequiredCustomModifiers System
returnTypeOptionalCustomModifiers System
parameterTypes System
parameterTypeRequiredCustomModifiers System
parameterTypeOptionalCustomModifiers System
return System.Reflection.Emit.MethodBuilder

DefineMethodOverride() public method

public DefineMethodOverride ( System methodInfoBody, System methodInfoDeclaration ) : void
methodInfoBody System
methodInfoDeclaration System
return void

DefineNestedType() public method

public DefineNestedType ( string name ) : System.Reflection.Emit.TypeBuilder
name string
return System.Reflection.Emit.TypeBuilder

DefineNestedType() public method

public DefineNestedType ( string name, System attr ) : System.Reflection.Emit.TypeBuilder
name string
attr System
return System.Reflection.Emit.TypeBuilder

DefineNestedType() public method

public DefineNestedType ( string name, System attr, System parent ) : System.Reflection.Emit.TypeBuilder
name string
attr System
parent System
return System.Reflection.Emit.TypeBuilder

DefineNestedType() public method

public DefineNestedType ( string name, System attr, System parent, System packSize ) : System.Reflection.Emit.TypeBuilder
name string
attr System
parent System
packSize System
return System.Reflection.Emit.TypeBuilder

DefineNestedType() public method

public DefineNestedType ( string name, System attr, System parent, System packSize, int typeSize ) : System.Reflection.Emit.TypeBuilder
name string
attr System
parent System
packSize System
typeSize int
return System.Reflection.Emit.TypeBuilder

DefineNestedType() public method

public DefineNestedType ( string name, System attr, System parent, int typeSize ) : System.Reflection.Emit.TypeBuilder
name string
attr System
parent System
typeSize int
return System.Reflection.Emit.TypeBuilder

DefineProperty() public method

public DefineProperty ( string name, System attributes, System returnType, System parameterTypes ) : System.Reflection.Emit.PropertyBuilder
name string
attributes System
returnType System
parameterTypes System
return System.Reflection.Emit.PropertyBuilder

DefineProperty() public method

public DefineProperty ( string name, System attributes, System callingConvention, System returnType, System parameterTypes ) : System.Reflection.Emit.PropertyBuilder
name string
attributes System
callingConvention System
returnType System
parameterTypes System
return System.Reflection.Emit.PropertyBuilder

DefineProperty() public method

public DefineProperty ( string name, System attributes, System returnType, System returnTypeRequiredCustomModifiers, System returnTypeOptionalCustomModifiers, System parameterTypes, System parameterTypeRequiredCustomModifiers, System parameterTypeOptionalCustomModifiers ) : System.Reflection.Emit.PropertyBuilder
name string
attributes System
returnType System
returnTypeRequiredCustomModifiers System
returnTypeOptionalCustomModifiers System
parameterTypes System
parameterTypeRequiredCustomModifiers System
parameterTypeOptionalCustomModifiers System
return System.Reflection.Emit.PropertyBuilder

DefineProperty() public method

public DefineProperty ( string name, System attributes, System callingConvention, System returnType, System returnTypeRequiredCustomModifiers, System returnTypeOptionalCustomModifiers, System parameterTypes, System parameterTypeRequiredCustomModifiers, System parameterTypeOptionalCustomModifiers ) : System.Reflection.Emit.PropertyBuilder
name string
attributes System
callingConvention System
returnType System
returnTypeRequiredCustomModifiers System
returnTypeOptionalCustomModifiers System
parameterTypes System
parameterTypeRequiredCustomModifiers System
parameterTypeOptionalCustomModifiers System
return System.Reflection.Emit.PropertyBuilder

DefineTypeInitializer() public method

public DefineTypeInitializer ( ) : System.Reflection.Emit.ConstructorBuilder
return System.Reflection.Emit.ConstructorBuilder

DefineUninitializedData() public method

public DefineUninitializedData ( string name, int size, System attributes ) : System.Reflection.Emit.FieldBuilder
name string
size int
attributes System
return System.Reflection.Emit.FieldBuilder

GetArrayRank() public method

public GetArrayRank ( ) : int
return int

GetConstructor() public static method

public static GetConstructor ( System type, System constructor ) : System.Reflection.ConstructorInfo
type System
constructor System
return System.Reflection.ConstructorInfo

GetElementType() public method

public GetElementType ( ) : Type
return System.Type

GetField() public static method

public static GetField ( System type, System field ) : System.Reflection.FieldInfo
type System
field System
return System.Reflection.FieldInfo

GetGenericParameterConstraints() public method

public GetGenericParameterConstraints ( ) : System.Type[]
return System.Type[]

GetGenericTypeDefinition() public method

public GetGenericTypeDefinition ( ) : System.Type
return System.Type

GetMethod() public static method

public static GetMethod ( System type, System method ) : System.Reflection.MethodInfo
type System
method System
return System.Reflection.MethodInfo

IsAssignableFrom() public method

public IsAssignableFrom ( System typeInfo ) : bool
typeInfo System
return bool

IsCreated() public method

public IsCreated ( ) : bool
return bool

MakeArrayType() public method

public MakeArrayType ( ) : System.Type
return System.Type

MakeArrayType() public method

public MakeArrayType ( int rank ) : System.Type
rank int
return System.Type

MakeByRefType() public method

public MakeByRefType ( ) : System.Type
return System.Type

MakeGenericType() public method

public MakeGenericType ( ) : System.Type
return System.Type

MakePointerType() public method

public MakePointerType ( ) : System.Type
return System.Type

SetCustomAttribute() public method

public SetCustomAttribute ( System customBuilder ) : void
customBuilder System
return void

SetCustomAttribute() public method

public SetCustomAttribute ( System con, byte binaryAttribute ) : void
con System
binaryAttribute byte
return void

SetParent() public method

public SetParent ( System parent ) : void
parent System
return void

ToString() public method

public ToString ( ) : string
return string