W3cubDocs

/Haxe C#

TypeBuilder

package cs.system.reflection.emit

extends TypeMemberInfo

implements _TypeBuilder

@:final@:libType@:csNative@:native("System.Reflection.Emit.TypeBuilder") Available on cs

Variables

read only PackingSize:PackingSize

read only Size:Int

read only TypeToken:TypeToken

Methods

@:final @:overload AddDeclarativeSecurity (action:SecurityAction, pset:PermissionSet):Void

@:final @:overload AddInterfaceImplementation (interfaceType:Type):Void

@:final @:overload CreateType ():Type

@:final @:overload DefineConstructor (attributes:MethodAttributes, callingConvention:CallingConventions, parameterTypes:NativeArray<Type>):ConstructorBuilder

@:final @:overload DefineConstructor (attributes:MethodAttributes, callingConvention:CallingConventions, parameterTypes:NativeArray<Type>, requiredCustomModifiers:NativeArray<NativeArray<Type>>, optionalCustomModifiers:NativeArray<NativeArray<Type>>):ConstructorBuilder

@:final @:overload DefineDefaultConstructor (attributes:MethodAttributes):ConstructorBuilder

@:final @:overload DefineEvent (name:String, attributes:EventAttributes, eventtype:Type):EventBuilder

@:final @:overload DefineField (fieldName:String, type:Type, attributes:FieldAttributes):FieldBuilder

@:final @:overload DefineField (fieldName:String, type:Type, requiredCustomModifiers:NativeArray<Type>, optionalCustomModifiers:NativeArray<Type>, attributes:FieldAttributes):FieldBuilder

@:final @:overload DefineGenericParameters (names:NativeArray<String>):NativeArray<GenericTypeParameterBuilder>

@:final @:overload DefineInitializedData (name:String, data:NativeArray<UInt8>, attributes:FieldAttributes):FieldBuilder

@:final @:overload DefineMethod (name:String, attributes:MethodAttributes, returnType:Type, parameterTypes:NativeArray<Type>):MethodBuilder

@:final @:overload DefineMethod (name:String, attributes:MethodAttributes, callingConvention:CallingConventions):MethodBuilder

@:final @:overload DefineMethod (name:String, attributes:MethodAttributes):MethodBuilder

@:final @:overload DefineMethod (name:String, attributes:MethodAttributes, callingConvention:CallingConventions, returnType:Type, returnTypeRequiredCustomModifiers:NativeArray<Type>, returnTypeOptionalCustomModifiers:NativeArray<Type>, parameterTypes:NativeArray<Type>, parameterTypeRequiredCustomModifiers:NativeArray<NativeArray<Type>>, parameterTypeOptionalCustomModifiers:NativeArray<NativeArray<Type>>):MethodBuilder

@:final @:overload DefineMethod (name:String, attributes:MethodAttributes, callingConvention:CallingConventions, returnType:Type, parameterTypes:NativeArray<Type>):MethodBuilder

@:final @:overload DefineMethodOverride (methodInfoBody:MethodInfo, methodInfoDeclaration:MethodInfo):Void

@:final @:overload DefineNestedType (name:String):TypeBuilder

@:final @:overload DefineNestedType (name:String, attr:TypeAttributes, parent:Type, packSize:PackingSize):TypeBuilder

@:final @:overload DefineNestedType (name:String, attr:TypeAttributes, parent:Type, typeSize:Int):TypeBuilder

@:final @:overload DefineNestedType (name:String, attr:TypeAttributes, parent:Type, interfaces:NativeArray<Type>):TypeBuilder

@:final @:overload DefineNestedType (name:String, attr:TypeAttributes, parent:Type):TypeBuilder

@:final @:overload DefineNestedType (name:String, attr:TypeAttributes):TypeBuilder

@:final @:overload DefinePInvokeMethod (name:String, dllName:String, entryName:String, attributes:MethodAttributes, callingConvention:CallingConventions, returnType:Type, parameterTypes:NativeArray<Type>, nativeCallConv:CallingConvention, nativeCharSet:CharSet):MethodBuilder

@:final @:overload DefinePInvokeMethod (name:String, dllName:String, attributes:MethodAttributes, callingConvention:CallingConventions, returnType:Type, parameterTypes:NativeArray<Type>, nativeCallConv:CallingConvention, nativeCharSet:CharSet):MethodBuilder

@:final @:overload DefinePInvokeMethod (name:String, dllName:String, entryName:String, attributes:MethodAttributes, callingConvention:CallingConventions, returnType:Type, returnTypeRequiredCustomModifiers:NativeArray<Type>, returnTypeOptionalCustomModifiers:NativeArray<Type>, parameterTypes:NativeArray<Type>, parameterTypeRequiredCustomModifiers:NativeArray<NativeArray<Type>>, parameterTypeOptionalCustomModifiers:NativeArray<NativeArray<Type>>, nativeCallConv:CallingConvention, nativeCharSet:CharSet):MethodBuilder

@:final @:overload DefineProperty (name:String, attributes:PropertyAttributes, returnType:Type, parameterTypes:NativeArray<Type>):PropertyBuilder

@:final @:overload DefineProperty (name:String, attributes:PropertyAttributes, callingConvention:CallingConventions, returnType:Type, returnTypeRequiredCustomModifiers:NativeArray<Type>, returnTypeOptionalCustomModifiers:NativeArray<Type>, parameterTypes:NativeArray<Type>, parameterTypeRequiredCustomModifiers:NativeArray<NativeArray<Type>>, parameterTypeOptionalCustomModifiers:NativeArray<NativeArray<Type>>):PropertyBuilder

@:final @:overload DefineProperty (name:String, attributes:PropertyAttributes, returnType:Type, returnTypeRequiredCustomModifiers:NativeArray<Type>, returnTypeOptionalCustomModifiers:NativeArray<Type>, parameterTypes:NativeArray<Type>, parameterTypeRequiredCustomModifiers:NativeArray<NativeArray<Type>>, parameterTypeOptionalCustomModifiers:NativeArray<NativeArray<Type>>):PropertyBuilder

@:final @:overload DefineTypeInitializer ():ConstructorBuilder

@:final @:overload DefineUninitializedData (name:String, size:Int, attributes:FieldAttributes):FieldBuilder

@:final @:overload IsCreated ():Bool

@:final @:overload SetCustomAttribute (customBuilder:CustomAttributeBuilder):Void

@:final @:overload SetCustomAttribute (con:ConstructorInfo, binaryAttribute:NativeArray<UInt8>):Void

@:final @:overload SetParent (parent:Type):Void

Static variables

@:readOnly static read only UnspecifiedTypeSize:Int

Static methods

@:final @:overload static GetConstructor (type:Type, constructor:ConstructorInfo):ConstructorInfo

@:final @:overload static GetField (type:Type, field:FieldInfo):FieldInfo

@:final @:overload static GetMethod (type:Type, method:MethodInfo):MethodInfo

@:native("GetConstructor") @:final @:overload static _GetConstructor (type:Type, constructor:ConstructorInfo):ConstructorInfo

@:native("GetField") @:final @:overload static _GetField (type:Type, field:FieldInfo):FieldInfo

@:native("GetMethod") @:final @:overload static _GetMethod (type:Type, method:MethodInfo):MethodInfo

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/cs/system/reflection/emit/TypeBuilder.html