C# Класс IKVM.Reflection.Emit.TypeBuilder

Наследование: System.Type, ITypeOwner
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CheckBaked void
CreateMethodBuilder MethodBuilder
DefineNestedType TypeBuilder
DefinePropertyImpl IKVM.Reflection.Emit.PropertyBuilder
GetGenericTypeArgument System.Type
GetModuleBuilderToken int
LookupMethod MethodBase
PopulatePropertyAndEventTables void
ResolveMethodAndFieldTokens void
SetStructLayoutPseudoCustomAttribute void
TypeBuilder System
WriteFieldRecords void
WriteMethodDefRecords void
WriteParamRecords void
WriteTypeDefRecord void

Открытые методы

Метод Описание
AddDeclarativeSecurity ( System securityAction, System permissionSet ) : void
AddInterfaceImplementation ( Type interfaceType ) : void
CreateType ( ) : Type
DefineConstructor ( MethodAttributes attribs, CallingConventions callConv, Type parameterTypes ) : IKVM.Reflection.Emit.ConstructorBuilder
DefineConstructor ( MethodAttributes attribs, CallingConventions callingConvention, Type parameterTypes, Type requiredCustomModifiers, Type optionalCustomModifiers ) : IKVM.Reflection.Emit.ConstructorBuilder
DefineDefaultConstructor ( MethodAttributes attributes ) : IKVM.Reflection.Emit.ConstructorBuilder
DefineEvent ( string name, EventAttributes attributes, Type eventtype ) : IKVM.Reflection.Emit.EventBuilder
DefineField ( string name, Type fieldType, FieldAttributes attribs ) : FieldBuilder
DefineField ( string fieldName, Type type, Type requiredCustomModifiers, Type optionalCustomModifiers, FieldAttributes attributes ) : FieldBuilder
DefineGenericParameters ( ) : IKVM.Reflection.Emit.GenericTypeParameterBuilder[]
DefineInitializedData ( string name, byte data, FieldAttributes attributes ) : FieldBuilder
DefineMethod ( string name, MethodAttributes attribs ) : MethodBuilder
DefineMethod ( string name, MethodAttributes attribs, CallingConventions callingConvention ) : MethodBuilder
DefineMethod ( string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type parameterTypes ) : MethodBuilder
DefineMethod ( string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type returnTypeRequiredCustomModifiers, Type returnTypeOptionalCustomModifiers, Type parameterTypes, Type parameterTypeRequiredCustomModifiers, Type parameterTypeOptionalCustomModifiers ) : MethodBuilder
DefineMethod ( string name, MethodAttributes attribs, Type returnType, Type parameterTypes ) : MethodBuilder
DefineMethodOverride ( MethodInfo methodInfoBody, MethodInfo methodInfoDeclaration ) : void
DefineNestedType ( string name ) : TypeBuilder
DefineNestedType ( string name, TypeAttributes attribs ) : TypeBuilder
DefineNestedType ( string name, TypeAttributes attr, Type parent ) : TypeBuilder
DefineNestedType ( string name, TypeAttributes attr, Type parent, PackingSize packSize ) : TypeBuilder
DefineNestedType ( string name, TypeAttributes attr, Type parent, Type interfaces ) : TypeBuilder
DefineNestedType ( string name, TypeAttributes attr, Type parent, int typeSize ) : TypeBuilder
DefinePInvokeMethod ( string name, string dllName, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet ) : MethodBuilder
DefinePInvokeMethod ( string name, string dllName, string entryName, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet ) : MethodBuilder
DefinePInvokeMethod ( string name, string dllName, string entryName, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type returnTypeRequiredCustomModifiers, Type returnTypeOptionalCustomModifiers, Type parameterTypes, Type parameterTypeRequiredCustomModifiers, Type parameterTypeOptionalCustomModifiers, CallingConvention nativeCallConv, CharSet nativeCharSet ) : MethodBuilder
DefineProperty ( string name, PropertyAttributes attributes, CallingConventions callingConvention, Type returnType, Type returnTypeRequiredCustomModifiers, Type returnTypeOptionalCustomModifiers, Type parameterTypes, Type parameterTypeRequiredCustomModifiers, Type parameterTypeOptionalCustomModifiers ) : IKVM.Reflection.Emit.PropertyBuilder
DefineProperty ( string name, PropertyAttributes attributes, Type returnType, Type parameterTypes ) : IKVM.Reflection.Emit.PropertyBuilder
DefineProperty ( string name, PropertyAttributes attributes, Type returnType, Type returnTypeRequiredCustomModifiers, Type returnTypeOptionalCustomModifiers, Type parameterTypes, Type parameterTypeRequiredCustomModifiers, Type parameterTypeOptionalCustomModifiers ) : IKVM.Reflection.Emit.PropertyBuilder
DefineTypeInitializer ( ) : IKVM.Reflection.Emit.ConstructorBuilder
DefineUninitializedData ( string name, int size, FieldAttributes attributes ) : FieldBuilder
GetConstructor ( Type type, ConstructorInfo constructor ) : ConstructorInfo
GetField ( Type type, FieldInfo field ) : FieldInfo
GetGenericArguments ( ) : System.Type[]
GetGenericTypeDefinition ( ) : Type
GetMethod ( Type type, MethodInfo method ) : MethodInfo
IsCreated ( ) : bool
SetCustomAttribute ( ConstructorInfo con, byte binaryAttribute ) : void
SetCustomAttribute ( CustomAttributeBuilder customBuilder ) : void
SetParent ( Type parent ) : void
__AddDeclarativeSecurity ( CustomAttributeBuilder customBuilder ) : void
__DefineNestedType ( string ns, string name ) : TypeBuilder
__GetDeclaredEvents ( ) : EventInfo[]
__GetDeclaredFields ( ) : FieldInfo[]
__GetDeclaredInterfaces ( ) : System.Type[]
__GetDeclaredMethods ( ) : MethodBase[]
__GetDeclaredProperties ( ) : PropertyInfo[]
__GetDeclaredTypes ( ) : System.Type[]
__GetGenericArgumentsOptionalCustomModifiers ( ) : System.Type[][]
__GetGenericArgumentsRequiredCustomModifiers ( ) : System.Type[][]
__SetAttributes ( TypeAttributes attributes ) : void

Приватные методы

Метод Описание
CheckBaked ( ) : void
CreateMethodBuilder ( string name, MethodAttributes attributes, CallingConventions callingConvention ) : MethodBuilder
DefineNestedType ( string name, TypeAttributes attr, Type parent, PackingSize packSize, int typeSize ) : TypeBuilder
DefinePropertyImpl ( string name, PropertyAttributes attributes, CallingConventions callingConvention, bool patchCallingConvention, Type returnType, Type returnTypeRequiredCustomModifiers, Type returnTypeOptionalCustomModifiers, Type parameterTypes, Type parameterTypeRequiredCustomModifiers, Type parameterTypeOptionalCustomModifiers ) : IKVM.Reflection.Emit.PropertyBuilder
GetGenericTypeArgument ( int index ) : Type
GetModuleBuilderToken ( ) : int
LookupMethod ( int token ) : MethodBase
PopulatePropertyAndEventTables ( ) : void
ResolveMethodAndFieldTokens ( int &methodToken, int &fieldToken, int &parameterToken ) : void
SetStructLayoutPseudoCustomAttribute ( CustomAttributeBuilder customBuilder ) : void
TypeBuilder ( ITypeOwner owner, string ns, string name ) : System
WriteFieldRecords ( IKVM.Reflection.Writer.MetadataWriter mw ) : void
WriteMethodDefRecords ( int baseRVA, IKVM.Reflection.Writer.MetadataWriter mw, int &paramList ) : void
WriteParamRecords ( IKVM.Reflection.Writer.MetadataWriter mw ) : void
WriteTypeDefRecord ( IKVM.Reflection.Writer.MetadataWriter mw, int &fieldList, int &methodList ) : void

Описание методов

AddDeclarativeSecurity() публичный Метод

public AddDeclarativeSecurity ( System securityAction, System permissionSet ) : void
securityAction System
permissionSet System
Результат void

AddInterfaceImplementation() публичный Метод

public AddInterfaceImplementation ( Type interfaceType ) : void
interfaceType System.Type
Результат void

CreateType() публичный Метод

public CreateType ( ) : Type
Результат System.Type

DefineConstructor() публичный Метод

public DefineConstructor ( MethodAttributes attribs, CallingConventions callConv, Type parameterTypes ) : IKVM.Reflection.Emit.ConstructorBuilder
attribs MethodAttributes
callConv CallingConventions
parameterTypes System.Type
Результат IKVM.Reflection.Emit.ConstructorBuilder

DefineConstructor() публичный Метод

public DefineConstructor ( MethodAttributes attribs, CallingConventions callingConvention, Type parameterTypes, Type requiredCustomModifiers, Type optionalCustomModifiers ) : IKVM.Reflection.Emit.ConstructorBuilder
attribs MethodAttributes
callingConvention CallingConventions
parameterTypes System.Type
requiredCustomModifiers System.Type
optionalCustomModifiers System.Type
Результат IKVM.Reflection.Emit.ConstructorBuilder

DefineDefaultConstructor() публичный Метод

public DefineDefaultConstructor ( MethodAttributes attributes ) : IKVM.Reflection.Emit.ConstructorBuilder
attributes MethodAttributes
Результат IKVM.Reflection.Emit.ConstructorBuilder

DefineEvent() публичный Метод

public DefineEvent ( string name, EventAttributes attributes, Type eventtype ) : IKVM.Reflection.Emit.EventBuilder
name string
attributes EventAttributes
eventtype System.Type
Результат IKVM.Reflection.Emit.EventBuilder

DefineField() публичный Метод

public DefineField ( string name, Type fieldType, FieldAttributes attribs ) : FieldBuilder
name string
fieldType System.Type
attribs FieldAttributes
Результат FieldBuilder

DefineField() публичный Метод

public DefineField ( string fieldName, Type type, Type requiredCustomModifiers, Type optionalCustomModifiers, FieldAttributes attributes ) : FieldBuilder
fieldName string
type System.Type
requiredCustomModifiers System.Type
optionalCustomModifiers System.Type
attributes FieldAttributes
Результат FieldBuilder

DefineGenericParameters() публичный Метод

public DefineGenericParameters ( ) : IKVM.Reflection.Emit.GenericTypeParameterBuilder[]
Результат IKVM.Reflection.Emit.GenericTypeParameterBuilder[]

DefineInitializedData() публичный Метод

public DefineInitializedData ( string name, byte data, FieldAttributes attributes ) : FieldBuilder
name string
data byte
attributes FieldAttributes
Результат FieldBuilder

DefineMethod() публичный Метод

public DefineMethod ( string name, MethodAttributes attribs ) : MethodBuilder
name string
attribs MethodAttributes
Результат MethodBuilder

DefineMethod() публичный Метод

public DefineMethod ( string name, MethodAttributes attribs, CallingConventions callingConvention ) : MethodBuilder
name string
attribs MethodAttributes
callingConvention CallingConventions
Результат MethodBuilder

DefineMethod() публичный Метод

public DefineMethod ( string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type parameterTypes ) : MethodBuilder
name string
attributes MethodAttributes
callingConvention CallingConventions
returnType System.Type
parameterTypes System.Type
Результат MethodBuilder

DefineMethod() публичный Метод

public DefineMethod ( string name, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type returnTypeRequiredCustomModifiers, Type returnTypeOptionalCustomModifiers, Type parameterTypes, Type parameterTypeRequiredCustomModifiers, Type parameterTypeOptionalCustomModifiers ) : MethodBuilder
name string
attributes MethodAttributes
callingConvention CallingConventions
returnType System.Type
returnTypeRequiredCustomModifiers System.Type
returnTypeOptionalCustomModifiers System.Type
parameterTypes System.Type
parameterTypeRequiredCustomModifiers System.Type
parameterTypeOptionalCustomModifiers System.Type
Результат MethodBuilder

DefineMethod() публичный Метод

public DefineMethod ( string name, MethodAttributes attribs, Type returnType, Type parameterTypes ) : MethodBuilder
name string
attribs MethodAttributes
returnType System.Type
parameterTypes System.Type
Результат MethodBuilder

DefineMethodOverride() публичный Метод

public DefineMethodOverride ( MethodInfo methodInfoBody, MethodInfo methodInfoDeclaration ) : void
methodInfoBody MethodInfo
methodInfoDeclaration MethodInfo
Результат void

DefineNestedType() публичный Метод

public DefineNestedType ( string name ) : TypeBuilder
name string
Результат TypeBuilder

DefineNestedType() публичный Метод

public DefineNestedType ( string name, TypeAttributes attribs ) : TypeBuilder
name string
attribs TypeAttributes
Результат TypeBuilder

DefineNestedType() публичный Метод

public DefineNestedType ( string name, TypeAttributes attr, Type parent ) : TypeBuilder
name string
attr TypeAttributes
parent System.Type
Результат TypeBuilder

DefineNestedType() публичный Метод

public DefineNestedType ( string name, TypeAttributes attr, Type parent, PackingSize packSize ) : TypeBuilder
name string
attr TypeAttributes
parent System.Type
packSize PackingSize
Результат TypeBuilder

DefineNestedType() публичный Метод

public DefineNestedType ( string name, TypeAttributes attr, Type parent, Type interfaces ) : TypeBuilder
name string
attr TypeAttributes
parent System.Type
interfaces System.Type
Результат TypeBuilder

DefineNestedType() публичный Метод

public DefineNestedType ( string name, TypeAttributes attr, Type parent, int typeSize ) : TypeBuilder
name string
attr TypeAttributes
parent System.Type
typeSize int
Результат TypeBuilder

DefinePInvokeMethod() публичный Метод

public DefinePInvokeMethod ( string name, string dllName, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet ) : MethodBuilder
name string
dllName string
attributes MethodAttributes
callingConvention CallingConventions
returnType System.Type
parameterTypes System.Type
nativeCallConv CallingConvention
nativeCharSet CharSet
Результат MethodBuilder

DefinePInvokeMethod() публичный Метод

public DefinePInvokeMethod ( string name, string dllName, string entryName, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type parameterTypes, CallingConvention nativeCallConv, CharSet nativeCharSet ) : MethodBuilder
name string
dllName string
entryName string
attributes MethodAttributes
callingConvention CallingConventions
returnType System.Type
parameterTypes System.Type
nativeCallConv CallingConvention
nativeCharSet CharSet
Результат MethodBuilder

DefinePInvokeMethod() публичный Метод

public DefinePInvokeMethod ( string name, string dllName, string entryName, MethodAttributes attributes, CallingConventions callingConvention, Type returnType, Type returnTypeRequiredCustomModifiers, Type returnTypeOptionalCustomModifiers, Type parameterTypes, Type parameterTypeRequiredCustomModifiers, Type parameterTypeOptionalCustomModifiers, CallingConvention nativeCallConv, CharSet nativeCharSet ) : MethodBuilder
name string
dllName string
entryName string
attributes MethodAttributes
callingConvention CallingConventions
returnType System.Type
returnTypeRequiredCustomModifiers System.Type
returnTypeOptionalCustomModifiers System.Type
parameterTypes System.Type
parameterTypeRequiredCustomModifiers System.Type
parameterTypeOptionalCustomModifiers System.Type
nativeCallConv CallingConvention
nativeCharSet CharSet
Результат MethodBuilder

DefineProperty() публичный Метод

public DefineProperty ( string name, PropertyAttributes attributes, CallingConventions callingConvention, Type returnType, Type returnTypeRequiredCustomModifiers, Type returnTypeOptionalCustomModifiers, Type parameterTypes, Type parameterTypeRequiredCustomModifiers, Type parameterTypeOptionalCustomModifiers ) : IKVM.Reflection.Emit.PropertyBuilder
name string
attributes PropertyAttributes
callingConvention CallingConventions
returnType System.Type
returnTypeRequiredCustomModifiers System.Type
returnTypeOptionalCustomModifiers System.Type
parameterTypes System.Type
parameterTypeRequiredCustomModifiers System.Type
parameterTypeOptionalCustomModifiers System.Type
Результат IKVM.Reflection.Emit.PropertyBuilder

DefineProperty() публичный Метод

public DefineProperty ( string name, PropertyAttributes attributes, Type returnType, Type parameterTypes ) : IKVM.Reflection.Emit.PropertyBuilder
name string
attributes PropertyAttributes
returnType System.Type
parameterTypes System.Type
Результат IKVM.Reflection.Emit.PropertyBuilder

DefineProperty() публичный Метод

public DefineProperty ( string name, PropertyAttributes attributes, Type returnType, Type returnTypeRequiredCustomModifiers, Type returnTypeOptionalCustomModifiers, Type parameterTypes, Type parameterTypeRequiredCustomModifiers, Type parameterTypeOptionalCustomModifiers ) : IKVM.Reflection.Emit.PropertyBuilder
name string
attributes PropertyAttributes
returnType System.Type
returnTypeRequiredCustomModifiers System.Type
returnTypeOptionalCustomModifiers System.Type
parameterTypes System.Type
parameterTypeRequiredCustomModifiers System.Type
parameterTypeOptionalCustomModifiers System.Type
Результат IKVM.Reflection.Emit.PropertyBuilder

DefineTypeInitializer() публичный Метод

public DefineTypeInitializer ( ) : IKVM.Reflection.Emit.ConstructorBuilder
Результат IKVM.Reflection.Emit.ConstructorBuilder

DefineUninitializedData() публичный Метод

public DefineUninitializedData ( string name, int size, FieldAttributes attributes ) : FieldBuilder
name string
size int
attributes FieldAttributes
Результат FieldBuilder

GetConstructor() публичный статический Метод

public static GetConstructor ( Type type, ConstructorInfo constructor ) : ConstructorInfo
type System.Type
constructor ConstructorInfo
Результат ConstructorInfo

GetField() публичный статический Метод

public static GetField ( Type type, FieldInfo field ) : FieldInfo
type System.Type
field FieldInfo
Результат FieldInfo

GetGenericArguments() публичный Метод

public GetGenericArguments ( ) : System.Type[]
Результат System.Type[]

GetGenericTypeDefinition() публичный Метод

public GetGenericTypeDefinition ( ) : Type
Результат System.Type

GetMethod() публичный статический Метод

public static GetMethod ( Type type, MethodInfo method ) : MethodInfo
type System.Type
method MethodInfo
Результат MethodInfo

IsCreated() публичный Метод

public IsCreated ( ) : bool
Результат bool

SetCustomAttribute() публичный Метод

public SetCustomAttribute ( ConstructorInfo con, byte binaryAttribute ) : void
con ConstructorInfo
binaryAttribute byte
Результат void

SetCustomAttribute() публичный Метод

public SetCustomAttribute ( CustomAttributeBuilder customBuilder ) : void
customBuilder CustomAttributeBuilder
Результат void

SetParent() публичный Метод

public SetParent ( Type parent ) : void
parent System.Type
Результат void

__AddDeclarativeSecurity() публичный Метод

public __AddDeclarativeSecurity ( CustomAttributeBuilder customBuilder ) : void
customBuilder CustomAttributeBuilder
Результат void

__DefineNestedType() публичный Метод

public __DefineNestedType ( string ns, string name ) : TypeBuilder
ns string
name string
Результат TypeBuilder

__GetDeclaredEvents() публичный Метод

public __GetDeclaredEvents ( ) : EventInfo[]
Результат EventInfo[]

__GetDeclaredFields() публичный Метод

public __GetDeclaredFields ( ) : FieldInfo[]
Результат FieldInfo[]

__GetDeclaredInterfaces() публичный Метод

public __GetDeclaredInterfaces ( ) : System.Type[]
Результат System.Type[]

__GetDeclaredMethods() публичный Метод

public __GetDeclaredMethods ( ) : MethodBase[]
Результат MethodBase[]

__GetDeclaredProperties() публичный Метод

public __GetDeclaredProperties ( ) : PropertyInfo[]
Результат PropertyInfo[]

__GetDeclaredTypes() публичный Метод

public __GetDeclaredTypes ( ) : System.Type[]
Результат System.Type[]

__GetGenericArgumentsOptionalCustomModifiers() публичный Метод

public __GetGenericArgumentsOptionalCustomModifiers ( ) : System.Type[][]
Результат System.Type[][]

__GetGenericArgumentsRequiredCustomModifiers() публичный Метод

public __GetGenericArgumentsRequiredCustomModifiers ( ) : System.Type[][]
Результат System.Type[][]

__SetAttributes() публичный Метод

public __SetAttributes ( TypeAttributes attributes ) : void
attributes TypeAttributes
Результат void