C# Class IKVM.Reflection.Emit.TypeBuilder

Inheritance: System.Type, ITypeOwner
Afficher le fichier Open project: samskivert/ikvm-monotouch Class Usage Examples

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

AddDeclarativeSecurity() public méthode

public AddDeclarativeSecurity ( System securityAction, System permissionSet ) : void
securityAction System
permissionSet System
Résultat void

AddInterfaceImplementation() public méthode

public AddInterfaceImplementation ( Type interfaceType ) : void
interfaceType System.Type
Résultat void

CreateType() public méthode

public CreateType ( ) : Type
Résultat System.Type

DefineConstructor() public méthode

public DefineConstructor ( MethodAttributes attribs, CallingConventions callConv, Type parameterTypes ) : IKVM.Reflection.Emit.ConstructorBuilder
attribs MethodAttributes
callConv CallingConventions
parameterTypes System.Type
Résultat IKVM.Reflection.Emit.ConstructorBuilder

DefineConstructor() public méthode

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
Résultat IKVM.Reflection.Emit.ConstructorBuilder

DefineDefaultConstructor() public méthode

public DefineDefaultConstructor ( MethodAttributes attributes ) : IKVM.Reflection.Emit.ConstructorBuilder
attributes MethodAttributes
Résultat IKVM.Reflection.Emit.ConstructorBuilder

DefineEvent() public méthode

public DefineEvent ( string name, EventAttributes attributes, Type eventtype ) : IKVM.Reflection.Emit.EventBuilder
name string
attributes EventAttributes
eventtype System.Type
Résultat IKVM.Reflection.Emit.EventBuilder

DefineField() public méthode

public DefineField ( string name, Type fieldType, FieldAttributes attribs ) : FieldBuilder
name string
fieldType System.Type
attribs FieldAttributes
Résultat FieldBuilder

DefineField() public méthode

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
Résultat FieldBuilder

DefineGenericParameters() public méthode

public DefineGenericParameters ( ) : IKVM.Reflection.Emit.GenericTypeParameterBuilder[]
Résultat IKVM.Reflection.Emit.GenericTypeParameterBuilder[]

DefineInitializedData() public méthode

public DefineInitializedData ( string name, byte data, FieldAttributes attributes ) : FieldBuilder
name string
data byte
attributes FieldAttributes
Résultat FieldBuilder

DefineMethod() public méthode

public DefineMethod ( string name, MethodAttributes attribs ) : MethodBuilder
name string
attribs MethodAttributes
Résultat MethodBuilder

DefineMethod() public méthode

public DefineMethod ( string name, MethodAttributes attribs, CallingConventions callingConvention ) : MethodBuilder
name string
attribs MethodAttributes
callingConvention CallingConventions
Résultat MethodBuilder

DefineMethod() public méthode

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
Résultat MethodBuilder

DefineMethod() public méthode

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
Résultat MethodBuilder

DefineMethod() public méthode

public DefineMethod ( string name, MethodAttributes attribs, Type returnType, Type parameterTypes ) : MethodBuilder
name string
attribs MethodAttributes
returnType System.Type
parameterTypes System.Type
Résultat MethodBuilder

DefineMethodOverride() public méthode

public DefineMethodOverride ( MethodInfo methodInfoBody, MethodInfo methodInfoDeclaration ) : void
methodInfoBody MethodInfo
methodInfoDeclaration MethodInfo
Résultat void

DefineNestedType() public méthode

public DefineNestedType ( string name ) : TypeBuilder
name string
Résultat TypeBuilder

DefineNestedType() public méthode

public DefineNestedType ( string name, TypeAttributes attribs ) : TypeBuilder
name string
attribs TypeAttributes
Résultat TypeBuilder

DefineNestedType() public méthode

public DefineNestedType ( string name, TypeAttributes attr, Type parent ) : TypeBuilder
name string
attr TypeAttributes
parent System.Type
Résultat TypeBuilder

DefineNestedType() public méthode

public DefineNestedType ( string name, TypeAttributes attr, Type parent, PackingSize packSize ) : TypeBuilder
name string
attr TypeAttributes
parent System.Type
packSize PackingSize
Résultat TypeBuilder

DefineNestedType() public méthode

public DefineNestedType ( string name, TypeAttributes attr, Type parent, Type interfaces ) : TypeBuilder
name string
attr TypeAttributes
parent System.Type
interfaces System.Type
Résultat TypeBuilder

DefineNestedType() public méthode

public DefineNestedType ( string name, TypeAttributes attr, Type parent, int typeSize ) : TypeBuilder
name string
attr TypeAttributes
parent System.Type
typeSize int
Résultat TypeBuilder

DefinePInvokeMethod() public méthode

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
Résultat MethodBuilder

DefinePInvokeMethod() public méthode

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
Résultat MethodBuilder

DefinePInvokeMethod() public méthode

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
Résultat MethodBuilder

DefineProperty() public méthode

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
Résultat IKVM.Reflection.Emit.PropertyBuilder

DefineProperty() public méthode

public DefineProperty ( string name, PropertyAttributes attributes, Type returnType, Type parameterTypes ) : IKVM.Reflection.Emit.PropertyBuilder
name string
attributes PropertyAttributes
returnType System.Type
parameterTypes System.Type
Résultat IKVM.Reflection.Emit.PropertyBuilder

DefineProperty() public méthode

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
Résultat IKVM.Reflection.Emit.PropertyBuilder

DefineTypeInitializer() public méthode

public DefineTypeInitializer ( ) : IKVM.Reflection.Emit.ConstructorBuilder
Résultat IKVM.Reflection.Emit.ConstructorBuilder

DefineUninitializedData() public méthode

public DefineUninitializedData ( string name, int size, FieldAttributes attributes ) : FieldBuilder
name string
size int
attributes FieldAttributes
Résultat FieldBuilder

GetConstructor() public static méthode

public static GetConstructor ( Type type, ConstructorInfo constructor ) : ConstructorInfo
type System.Type
constructor ConstructorInfo
Résultat ConstructorInfo

GetField() public static méthode

public static GetField ( Type type, FieldInfo field ) : FieldInfo
type System.Type
field FieldInfo
Résultat FieldInfo

GetGenericArguments() public méthode

public GetGenericArguments ( ) : System.Type[]
Résultat System.Type[]

GetGenericTypeDefinition() public méthode

public GetGenericTypeDefinition ( ) : Type
Résultat System.Type

GetMethod() public static méthode

public static GetMethod ( Type type, MethodInfo method ) : MethodInfo
type System.Type
method MethodInfo
Résultat MethodInfo

IsCreated() public méthode

public IsCreated ( ) : bool
Résultat bool

SetCustomAttribute() public méthode

public SetCustomAttribute ( ConstructorInfo con, byte binaryAttribute ) : void
con ConstructorInfo
binaryAttribute byte
Résultat void

SetCustomAttribute() public méthode

public SetCustomAttribute ( CustomAttributeBuilder customBuilder ) : void
customBuilder CustomAttributeBuilder
Résultat void

SetParent() public méthode

public SetParent ( Type parent ) : void
parent System.Type
Résultat void

__AddDeclarativeSecurity() public méthode

public __AddDeclarativeSecurity ( CustomAttributeBuilder customBuilder ) : void
customBuilder CustomAttributeBuilder
Résultat void

__DefineNestedType() public méthode

public __DefineNestedType ( string ns, string name ) : TypeBuilder
ns string
name string
Résultat TypeBuilder

__GetDeclaredEvents() public méthode

public __GetDeclaredEvents ( ) : EventInfo[]
Résultat EventInfo[]

__GetDeclaredFields() public méthode

public __GetDeclaredFields ( ) : FieldInfo[]
Résultat FieldInfo[]

__GetDeclaredInterfaces() public méthode

public __GetDeclaredInterfaces ( ) : System.Type[]
Résultat System.Type[]

__GetDeclaredMethods() public méthode

public __GetDeclaredMethods ( ) : MethodBase[]
Résultat MethodBase[]

__GetDeclaredProperties() public méthode

public __GetDeclaredProperties ( ) : PropertyInfo[]
Résultat PropertyInfo[]

__GetDeclaredTypes() public méthode

public __GetDeclaredTypes ( ) : System.Type[]
Résultat System.Type[]

__GetGenericArgumentsOptionalCustomModifiers() public méthode

public __GetGenericArgumentsOptionalCustomModifiers ( ) : System.Type[][]
Résultat System.Type[][]

__GetGenericArgumentsRequiredCustomModifiers() public méthode

public __GetGenericArgumentsRequiredCustomModifiers ( ) : System.Type[][]
Résultat System.Type[][]

__SetAttributes() public méthode

public __SetAttributes ( TypeAttributes attributes ) : void
attributes TypeAttributes
Résultat void