System.Reflection.Emit Defines and represents a dynamic assembly. Defines a dynamic assembly that has the specified name and access rights. An object that represents the new assembly. The name of the assembly. The access rights of the assembly. Defines a new assembly that has the specified name, access rights, and attributes. An object that represents the new assembly. The name of the assembly. The access rights of the assembly. A collection that contains the attributes of the assembly. Defines a named transient dynamic module in this assembly. A representing the defined dynamic module. The name of the dynamic module. Must be less than 260 characters in length. begins with white space.-or- The length of is zero.-or- The length of is greater than or equal to 260. is null. The caller does not have the required permission. The assembly for default symbol writer cannot be loaded.-or- The type that implements the default symbol writer interface cannot be found. Returns a value that indicates whether this instance is equal to the specified object. true if equals the type and value of this instance; otherwise, false. An object to compare with this instance, or null. Gets the display name of the current dynamic assembly. The display name of the dynamic assembly. Returns the dynamic module with the specified name. A ModuleBuilder object representing the requested dynamic module. The name of the requested dynamic module. is null. The length of is zero. The caller does not have the required permission. Returns the hash code for this instance. A 32-bit signed integer hash code. Returns information about how the given resource has been persisted. populated with information about the resource's topology, or null if the resource is not found. The name of the resource. This method is not currently supported. The caller does not have the required permission. Loads the specified manifest resource from this assembly. An array of type String containing the names of all the resources. This method is not supported on a dynamic assembly. To get the manifest resource names, use . The caller does not have the required permission. Loads the specified manifest resource from this assembly. A representing this manifest resource. The name of the manifest resource being requested. This method is not currently supported. The caller does not have the required permission. Gets a value that indicates that the current assembly is a dynamic assembly. Always true. Gets the module in the current that contains the assembly manifest. The manifest module. Set a custom attribute on this assembly using a specified custom attribute blob. The constructor for the custom attribute. A byte blob representing the attributes. or is null. The caller does not have the required permission. is not a RuntimeConstructorInfo. Set a custom attribute on this assembly using a custom attribute builder. An instance of a helper class to define the custom attribute. is null. The caller does not have the required permission. Defines the access modes for a dynamic assembly. The dynamic assembly can be executed, but not saved. The dynamic assembly can be unloaded and its memory reclaimed, subject to the restrictions described in Collectible Assemblies for Dynamic Type Generation. Defines and represents a constructor of a dynamic class. Retrieves the attributes for this constructor. Returns the attributes for this constructor. Gets a value that depends on whether the declaring type is generic. if the declaring type is generic; otherwise, . Retrieves a reference to the object for the type that declares this member. Returns the object for the type that declares this member. Defines a parameter of this constructor. Returns a ParameterBuilder object that represents the new parameter of this constructor. The position of the parameter in the parameter list. Parameters are indexed beginning with the number 1 for the first parameter. The attributes of the parameter. The name of the parameter. The name can be the null string. is less than 0 (zero), or it is greater than the number of parameters of the constructor. The containing type has been created using . Gets an for this constructor. Returns an object for this constructor. The constructor is a default constructor.-or-The constructor has or flags indicating that it should not have a method body. Gets an object, with the specified MSIL stream size, that can be used to build a method body for this constructor. An for this constructor. The size of the MSIL stream, in bytes. The constructor is a default constructor.-or-The constructor has or flags indicating that it should not have a method body. Returns the parameters of this constructor. Returns an array of objects that represent the parameters of this constructor. has not been called on this constructor's type, in the .NET Framework versions 1.0 and 1.1. has not been called on this constructor's type, in the .NET Framework version 2.0. Gets or sets whether the local variables in this constructor should be zero-initialized. Read/write. Gets or sets whether the local variables in this constructor should be zero-initialized. Retrieves the name of this constructor. Returns the name of this constructor. Set a custom attribute using a specified custom attribute blob. The constructor for the custom attribute. A byte blob representing the attributes. or is null. Set a custom attribute using a custom attribute builder. An instance of a helper class to define the custom attribute. is null. Sets the method implementation flags for this constructor. The method implementation flags. The containing type has been created using . Returns this instance as a . Returns a containing the name, attributes, and exceptions of this constructor, followed by the current Microsoft intermediate language (MSIL) stream. Describes and represents an enumeration type. Retrieves the dynamic assembly that contains this enum definition. Read-only. The dynamic assembly that contains this enum definition. Returns the full path of this enum qualified by the display name of the parent assembly. Read-only. The full path of this enum qualified by the display name of the parent assembly. If has not been called previously. Returns the parent of this type which is always . Read-only. The parent of this type. Gets a object that represents this enumeration. An object that represents this enumeration. Returns the type that declared this . Read-only. The type that declared this . Defines the named static field in an enumeration type with the specified constant value. The defined field. The name of the static field. The constant value of the literal. Returns the full path of this enum. Read-only. The full path of this enum. Calling this method always throws . This method is not supported. No value is returned. This method is not currently supported. Returns the GUID of this enum. Read-only. The GUID of this enum. This method is not currently supported in types that are not complete. Gets a value that indicates whether a specified object can be assigned to this object. true if can be assigned to this object; otherwise, false. The object to test. is less than 1. Retrieves the dynamic module that contains this definition. Read-only. The dynamic module that contains this definition. Returns the name of this enum. Read-only. The name of this enum. Returns the namespace of this enum. Read-only. The namespace of this enum. Sets a custom attribute using a specified custom attribute blob. The constructor for the custom attribute. A byte blob representing the attributes. or is null. Sets a custom attribute using a custom attribute builder. An instance of a helper class to define the custom attribute. is null. Returns the underlying field for this enum. Read-only. The underlying field for this enum. Defines events for a class. Adds one of the "other" methods associated with this event. "Other" methods are methods other than the "on" and "raise" methods associated with an event. This function can be called many times to add as many "other" methods. A MethodBuilder object that represents the other method. is null. has been called on the enclosing type. Sets the method used to subscribe to this event. A MethodBuilder object that represents the method used to subscribe to this event. is null. has been called on the enclosing type. Set a custom attribute using a specified custom attribute blob. The constructor for the custom attribute. A byte blob representing the attributes. or is null. has been called on the enclosing type. Sets a custom attribute using a custom attribute builder. An instance of a helper class to describe the custom attribute. is null. has been called on the enclosing type. Sets the method used to raise this event. A MethodBuilder object that represents the method used to raise this event. is null. has been called on the enclosing type. Sets the method used to unsubscribe to this event. A MethodBuilder object that represents the method used to unsubscribe to this event. is null. has been called on the enclosing type. Defines and represents a field. This class cannot be inherited. Indicates the attributes of this field. This property is read-only. The attributes of this field. Indicates a reference to the object for the type that declares this field. This property is read-only. A reference to the object for the type that declares this field. Indicates the object that represents the type of this field. This property is read-only. The object that represents the type of this field. Retrieves the value of the field supported by the given object. An containing the value of the field reflected by this instance. The object on which to access the field. This method is not supported. Indicates the name of this field. This property is read-only. A containing the name of this field. Sets the default value of this field. The new default value for this field. The containing type has been created using . The field is not one of the supported types.-or-The type of does not match the type of the field.-or-The field is of type or other reference type, is not null, and the value cannot be assigned to the reference type. Sets a custom attribute using a specified custom attribute blob. The constructor for the custom attribute. A byte blob representing the attributes. or is null. The parent type of this field is complete. Sets a custom attribute using a custom attribute builder. An instance of a helper class to define the custom attribute. is null. The parent type of this field is complete. Specifies the field layout. The offset of the field within the type containing this field. The containing type has been created using . is less than zero. Defines and creates generic type parameters for dynamically defined generic types and methods. This class cannot be inherited. Gets an object representing the dynamic assembly that contains the generic type definition the current type parameter belongs to. An object representing the dynamic assembly that contains the generic type definition the current type parameter belongs to. Gets null in all cases. A null reference (Nothing in Visual Basic) in all cases. Gets the base type constraint of the current generic type parameter. A object that represents the base type constraint of the generic type parameter, or null if the type parameter has no base type constraint. Gets true in all cases. true in all cases. Gets a that represents the declaring method, if the current represents a type parameter of a generic method. A that represents the declaring method, if the current represents a type parameter of a generic method; otherwise, null. Gets the generic type definition or generic method definition to which the generic type parameter belongs. If the type parameter belongs to a generic type, a object representing that generic type; if the type parameter belongs to a generic method, a object representing that type that declared that generic method. Tests whether the given object is an instance of EventToken and is equal to the current instance. Returns true if is an instance of EventToken and equals the current instance; otherwise, false. The object to be compared with the current instance. Gets null in all cases. A null reference (Nothing in Visual Basic) in all cases. Gets the position of the type parameter in the type parameter list of the generic type or method that declared the parameter. The position of the type parameter in the type parameter list of the generic type or method that declared the parameter. Throws a in all cases. The type referred to by the current array type, pointer type, or ByRef type; or null if the current type is not an array type, is not a pointer type, and is not passed by reference. In all cases. Not valid for generic type parameters. Not valid for generic type parameters. In all cases. Returns a 32-bit integer hash code for the current instance. A 32-bit integer hash code. Not supported for incomplete generic type parameters. Not supported for incomplete generic type parameters. In all cases. Throws a exception in all cases. Throws a exception in all cases. The object to test. In all cases. Gets true in all cases. true in all cases. Returns false in all cases. false in all cases. Gets false in all cases. false in all cases. Not supported for incomplete generic type parameters. Not supported for incomplete generic type parameters. Not supported. In all cases. Returns the type of a one-dimensional array whose element type is the generic type parameter. A object that represents the type of a one-dimensional array whose element type is the generic type parameter. Returns the type of an array whose element type is the generic type parameter, with the specified number of dimensions. A object that represents the type of an array whose element type is the generic type parameter, with the specified number of dimensions. The number of dimensions for the array. is not a valid number of dimensions. For example, its value is less than 1. Returns a object that represents the current generic type parameter when passed as a reference parameter. A object that represents the current generic type parameter when passed as a reference parameter. Not valid for incomplete generic type parameters. This method is invalid for incomplete generic type parameters. An array of type arguments. In all cases. Returns a object that represents a pointer to the current generic type parameter. A object that represents a pointer to the current generic type parameter. Gets the dynamic module that contains the generic type parameter. A object that represents the dynamic module that contains the generic type parameter. Gets the name of the generic type parameter. The name of the generic type parameter. Gets null in all cases. A null reference (Nothing in Visual Basic) in all cases. Sets the base type that a type must inherit in order to be substituted for the type parameter. The that must be inherited by any type that is to be substituted for the type parameter. Sets a custom attribute using a specified custom attribute blob. The constructor for the custom attribute. A byte blob representing the attribute. is null.-or- is a null reference. Set a custom attribute using a custom attribute builder. An instance of a helper class that defines the custom attribute. is null. Sets the variance characteristics and special constraints of the generic parameter, such as the parameterless constructor constraint. A bitwise combination of values that represent the variance characteristics and special constraints of the generic type parameter. Sets the interfaces a type must implement in order to be substituted for the type parameter. An array of objects that represent the interfaces a type must implement in order to be substituted for the type parameter. Returns a string representation of the current generic type parameter. A string that contains the name of the generic type parameter. Defines and represents a method (or constructor) on a dynamic class. Retrieves the attributes for this method. Read-only. Retrieves the MethodAttributes for this method. Returns the calling convention of the method. Read-only. The calling convention of the method. Not supported for this type. Not supported. The invoked method is not supported in the base class. Returns the type that declares this method. Read-only. The type that declares this method. Sets the number of generic type parameters for the current method, specifies their names, and returns an array of objects that can be used to define their constraints. An array of objects representing the type parameters of the generic method. An array of strings that represent the names of the generic type parameters. Generic type parameters have already been defined for this method.-or-The method has been completed already.-or-The method has been called for the current method. is null.-or-An element of is null. is an empty array. Sets the parameter attributes and the name of a parameter of this method, or of the return value of this method. Returns a ParameterBuilder that can be used to apply custom attributes. Returns a ParameterBuilder object that represents a parameter of this method or the return value of this method. The position of the parameter in the parameter list. Parameters are indexed beginning with the number 1 for the first parameter; the number 0 represents the return value of the method. The parameter attributes of the parameter. The name of the parameter. The name can be the null string. The method has no parameters.-or- is less than zero.-or- is greater than the number of the method's parameters. The containing type was previously created using .-or-For the current method, the property is true, but the property is false. Determines whether the given object is equal to this instance. true if is an instance of MethodBuilder and is equal to this object; otherwise, false. The object to compare with this MethodBuilder instance. Returns an array of objects that represent the type parameters of the method, if it is generic. An array of objects representing the type parameters, if the method is generic, or null if the method is not generic. Returns this method. The current instance of . The current method is not generic. That is, the property returns false. Gets the hash code for this method. The hash code for this method. Returns an ILGenerator for this method with a default Microsoft intermediate language (MSIL) stream size of 64 bytes. Returns an ILGenerator object for this method. The method should not have a body because of its or flags, for example because it has the flag. -or-The method is a generic method, but not a generic method definition. That is, the property is true, but the property is false. Returns an ILGenerator for this method with the specified Microsoft intermediate language (MSIL) stream size. Returns an ILGenerator object for this method. The size of the MSIL stream, in bytes. The method should not have a body because of its or flags, for example because it has the flag. -or-The method is a generic method, but not a generic method definition. That is, the property is true, but the property is false. Returns the parameters of this method. An array of ParameterInfo objects that represent the parameters of the method. This method is not currently supported. Retrieve the method using and call GetParameters on the returned . Gets or sets a Boolean value that specifies whether the local variables in this method are zero initialized. The default value of this property is true. true if the local variables in this method should be zero initialized; otherwise false. For the current method, the property is true, but the property is false. (Get or set.) Gets a value indicating whether the method is a generic method. true if the method is generic; otherwise, false. Gets a value indicating whether the current object represents the definition of a generic method. true if the current object represents the definition of a generic method; otherwise, false. Returns a generic method constructed from the current generic method definition using the specified generic type arguments. A representing the generic method constructed from the current generic method definition using the specified generic type arguments. An array of objects that represent the type arguments for the generic method. Retrieves the name of this method. Read-only. Retrieves a string containing the simple name of this method. Gets a object that contains information about the return type of the method, such as whether the return type has custom modifiers. A object that contains information about the return type. The declaring type has not been created. Gets the return type of the method represented by this . The return type of the method. Sets a custom attribute using a specified custom attribute blob. The constructor for the custom attribute. A byte blob representing the attributes. or is null. For the current method, the property is true, but the property is false. Sets a custom attribute using a custom attribute builder. An instance of a helper class to describe the custom attribute. is null. For the current method, the property is true, but the property is false. Sets the implementation flags for this method. The implementation flags to set. The containing type was previously created using .-or-For the current method, the property is true, but the property is false. Sets the number and types of parameters for a method. An array of objects representing the parameter types. The current method is generic, but is not a generic method definition. That is, the property is true, but the property is false. Sets the return type of the method. A object that represents the return type of the method. The current method is generic, but is not a generic method definition. That is, the property is true, but the property is false. Sets the method signature, including the return type, the parameter types, and the required and optional custom modifiers of the return type and parameter types. The return type of the method. An array of types representing the required custom modifiers, such as , for the return type of the method. If the return type has no required custom modifiers, specify null. An array of types representing the optional custom modifiers, such as , for the return type of the method. If the return type has no optional custom modifiers, specify null. The types of the parameters of the method. An array of arrays of types. Each array of types represents the required custom modifiers for the corresponding parameter, such as . If a particular parameter has no required custom modifiers, specify null instead of an array of types. If none of the parameters have required custom modifiers, specify null instead of an array of arrays. An array of arrays of types. Each array of types represents the optional custom modifiers for the corresponding parameter, such as . If a particular parameter has no optional custom modifiers, specify null instead of an array of types. If none of the parameters have optional custom modifiers, specify null instead of an array of arrays. The current method is generic, but is not a generic method definition. That is, the property is true, but the property is false. Returns this MethodBuilder instance as a string. Returns a string containing the name, attributes, method signature, exceptions, and local signature of this method followed by the current Microsoft intermediate language (MSIL) stream. Defines and represents a module in a dynamic assembly. Gets the dynamic assembly that defined this instance of . The dynamic assembly that defined the current dynamic module. Completes the global function definitions and global data definitions for this dynamic module. This method was called previously. Defines an enumeration type that is a value type with a single non-static field called of the specified type. The defined enumeration. The full path of the enumeration type. cannot contain embedded nulls. The type attributes for the enumeration. The attributes are any bits defined by . The underlying type for the enumeration. This must be a built-in integer type. Attributes other than visibility attributes are provided.-or- An enumeration with the given name exists in the parent assembly of this module.-or- The visibility attributes do not match the scope of the enumeration. For example, is specified for , but the enumeration is not a nested type. is null. Defines a global method with the specified name, attributes, calling convention, return type, and parameter types. The defined global method. The name of the method. cannot contain embedded nulls. The attributes of the method. must include . The calling convention for the method. The return type of the method. The types of the method's parameters. The method is not static. That is, does not include .-or-An element in the array is null. is null. has been previously called. Defines a global method with the specified name, attributes, calling convention, return type, custom modifiers for the return type, parameter types, and custom modifiers for the parameter types. The defined global method. The name of the method. cannot contain embedded null characters. The attributes of the method. must include . The calling convention for the method. The return type of the method. An array of types representing the required custom modifiers for the return type, such as or . If the return type has no required custom modifiers, specify null. An array of types representing the optional custom modifiers for the return type, such as or . If the return type has no optional custom modifiers, specify null. The types of the method's parameters. An array of arrays of types. Each array of types represents the required custom modifiers for the corresponding parameter of the global method. If a particular argument has no required custom modifiers, specify null instead of an array of types. If the global method has no arguments, or if none of the arguments have required custom modifiers, specify null instead of an array of arrays. An array of arrays of types. Each array of types represents the optional custom modifiers for the corresponding parameter. If a particular argument has no optional custom modifiers, specify null instead of an array of types. If the global method has no arguments, or if none of the arguments have optional custom modifiers, specify null instead of an array of arrays. The method is not static. That is, does not include .-or-An element in the array is null. is null. The method has been previously called. Defines a global method with the specified name, attributes, return type, and parameter types. The defined global method. The name of the method. cannot contain embedded nulls. The attributes of the method. must include . The return type of the method. The types of the method's parameters. The method is not static. That is, does not include .-or- The length of is zero -or-An element in the array is null. is null. has been previously called. Defines an initialized data field in the .sdata section of the portable executable (PE) file. A field to reference the data. The name used to refer to the data. cannot contain embedded nulls. The binary large object (BLOB) of data. The attributes for the field. The default is Static. The length of is zero.-or- The size of is less than or equal to zero or greater than or equal to 0x3f0000. or is null. has been previously called. Constructs a TypeBuilder for a private type with the specified name in this module. A private type with the specified name. The full path of the type, including the namespace. cannot contain embedded nulls. A type with the given name exists in the parent assembly of this module.-or- Nested type attributes are set on a type that is not nested. is null. Constructs a TypeBuilder given the type name and the type attributes. A TypeBuilder created with all of the requested attributes. The full path of the type. cannot contain embedded nulls. The attributes of the defined type. A type with the given name exists in the parent assembly of this module.-or- Nested type attributes are set on a type that is not nested. is null. Constructs a TypeBuilder given type name, its attributes, and the type that the defined type extends. A TypeBuilder created with all of the requested attributes. The full path of the type. cannot contain embedded nulls. The attribute to be associated with the type. The type that the defined type extends. A type with the given name exists in the parent assembly of this module.-or- Nested type attributes are set on a type that is not nested. is null. Constructs a TypeBuilder given the type name, the attributes, the type that the defined type extends, and the total size of the type. A TypeBuilder object. The full path of the type. cannot contain embedded nulls. The attributes of the defined type. The type that the defined type extends. The total size of the type. A type with the given name exists in the parent assembly of this module.-or- Nested type attributes are set on a type that is not nested. is null. Constructs a TypeBuilder given the type name, the attributes, the type that the defined type extends, and the packing size of the type. A TypeBuilder object. The full path of the type. cannot contain embedded nulls. The attributes of the defined type. The type that the defined type extends. The packing size of the type. A type with the given name exists in the parent assembly of this module.-or- Nested type attributes are set on a type that is not nested. is null. Constructs a TypeBuilder given the type name, attributes, the type that the defined type extends, the packing size of the defined type, and the total size of the defined type. A TypeBuilder created with all of the requested attributes. The full path of the type. cannot contain embedded nulls. The attributes of the defined type. The type that the defined type extends. The packing size of the type. The total size of the type. A type with the given name exists in the parent assembly of this module.-or- Nested type attributes are set on a type that is not nested. is null. Constructs a TypeBuilder given the type name, attributes, the type that the defined type extends, and the interfaces that the defined type implements. A TypeBuilder created with all of the requested attributes. The full path of the type. cannot contain embedded nulls. The attributes to be associated with the type. The type that the defined type extends. The list of interfaces that the type implements. A type with the given name exists in the parent assembly of this module.-or- Nested type attributes are set on a type that is not nested. is null. Defines an uninitialized data field in the .sdata section of the portable executable (PE) file. A field to reference the data. The name used to refer to the data. cannot contain embedded nulls. The size of the data field. The attributes for the field. The length of is zero.-or- is less than or equal to zero, or greater than or equal to 0x003f0000. is null. has been previously called. Returns a value that indicates whether this instance is equal to the specified object. true if equals the type and value of this instance; otherwise, false. An object to compare with this instance, or null. Gets a String representing the fully qualified name and path to this module. The fully qualified module name. Returns the named method on an array class. The named method on an array class. An array class. The name of a method on the array class. The method's calling convention. The return type of the method. The types of the method's parameters. is not an array. or is null. Returns the hash code for this instance. A 32-bit signed integer hash code. A string that indicates that this is an in-memory module. Text that indicates that this is an in-memory module. Applies a custom attribute to this module by using a specified binary large object (BLOB) that represents the attribute. The constructor for the custom attribute. A byte BLOB representing the attribute. or is null. Applies a custom attribute to this module by using a custom attribute builder. An instance of a helper class that specifies the custom attribute to apply. is null. Defines the properties for a type. Adds one of the other methods associated with this property. A MethodBuilder object that represents the other method. is null. has been called on the enclosing type. Gets the attributes for this property. Attributes of this property. Gets a value indicating whether the property can be read. true if this property can be read; otherwise, false. Gets a value indicating whether the property can be written to. true if this property can be written to; otherwise, false. Gets the class that declares this member. The Type object for the class that declares this member. Returns an array of all the index parameters for the property. An array of type ParameterInfo containing the parameters for the indexes. This method is not supported. Gets the value of the indexed property by calling the property's getter method. The value of the specified indexed property. The object whose property value will be returned. Optional index values for indexed properties. This value should be null for non-indexed properties. This method is not supported. Gets the name of this member. A containing the name of this member. Gets the type of the field of this property. The type of this property. Sets the default value of this property. The default value of this property. has been called on the enclosing type. The property is not one of the supported types.-or-The type of does not match the type of the property.-or-The property is of type or other reference type, is not null, and the value cannot be assigned to the reference type. Set a custom attribute using a specified custom attribute blob. The constructor for the custom attribute. A byte blob representing the attributes. or is null. has been called on the enclosing type. Set a custom attribute using a custom attribute builder. An instance of a helper class to define the custom attribute. is null. if has been called on the enclosing type. Sets the method that gets the property value. A MethodBuilder object that represents the method that gets the property value. is null. has been called on the enclosing type. Sets the method that sets the property value. A MethodBuilder object that represents the method that sets the property value. is null. has been called on the enclosing type. Sets the value of the property with optional index values for index properties. The object whose property value will be set. The new value for this property. Optional index values for indexed properties. This value should be null for non-indexed properties. This method is not supported. Defines and creates new instances of classes during run time. Adds an interface that this type implements. The interface that this type implements. is null. The type was previously created using . Retrieves the dynamic assembly that contains this type definition. Read-only. Retrieves the dynamic assembly that contains this type definition. Returns the full name of this type qualified by the display name of the assembly. Read-only. The full name of this type qualified by the display name of the assembly. Retrieves the base type of this type. Read-only. Retrieves the base type of this type. Gets a object that represents this type. An object that represents this type. Gets the method that declared the current generic type parameter. A that represents the method that declared the current type, if the current type is a generic type parameter; otherwise, null. Returns the type that declared this type. Read-only. The type that declared this type. Adds a new constructor to the type, with the given attributes and signature. The defined constructor. The attributes of the constructor. The calling convention of the constructor. The parameter types of the constructor. The type was previously created using . Adds a new constructor to the type, with the given attributes, signature, and custom modifiers. The defined constructor. The attributes of the constructor. The calling convention of the constructor. The parameter types of the constructor. An array of arrays of types. Each array of types represents the required custom modifiers for the corresponding parameter, such as . If a particular parameter has no required custom modifiers, specify null instead of an array of types. If none of the parameters have required custom modifiers, specify null instead of an array of arrays. An array of arrays of types. Each array of types represents the optional custom modifiers for the corresponding parameter, such as . If a particular parameter has no optional custom modifiers, specify null instead of an array of types. If none of the parameters have optional custom modifiers, specify null instead of an array of arrays. The size of or does not equal the size of . The type was previously created using .-or-For the current dynamic type, the property is true, but the property is false. Defines the default constructor. The constructor defined here will simply call the default constructor of the parent. Returns the constructor. A MethodAttributes object representing the attributes to be applied to the constructor. The parent type (base type) does not have a default constructor. The type was previously created using .-or-For the current dynamic type, the property is true, but the property is false. Adds a new event to the type, with the given name, attributes and event type. The defined event. The name of the event. cannot contain embedded nulls. The attributes of the event. The type of the event. The length of is zero. is null.-or- is null. The type was previously created using . Adds a new field to the type, with the given name, attributes, and field type. The defined field. The name of the field. cannot contain embedded nulls. The type of the field The attributes of the field. The length of is zero.-or- is System.Void.-or- A total size was specified for the parent class of this field. is null. The type was previously created using . Adds a new field to the type, with the given name, attributes, field type, and custom modifiers. The defined field. The name of the field. cannot contain embedded nulls. The type of the field An array of types representing the required custom modifiers for the field, such as . An array of types representing the optional custom modifiers for the field, such as . The attributes of the field. The length of is zero.-or- is System.Void.-or- A total size was specified for the parent class of this field. is null. The type was previously created using . Defines the generic type parameters for the current type, specifying their number and their names, and returns an array of objects that can be used to set their constraints. An array of objects that can be used to define the constraints of the generic type parameters for the current type. An array of names for the generic type parameters. Generic type parameters have already been defined for this type. is null.-or-An element of is null. is an empty array. Defines initialized data field in the .sdata section of the portable executable (PE) file. A field to reference the data. The name used to refer to the data. cannot contain embedded nulls. The blob of data. The attributes for the field. Length of is zero.-or- The size of the data is less than or equal to zero, or greater than or equal to 0x3f0000. or is null. has been previously called. Adds a new method to the type, with the specified name and method attributes. A representing the newly defined method. The name of the method. cannot contain embedded nulls. The attributes of the method. The length of is zero.-or- The type of the parent of this method is an interface, and this method is not virtual (Overridable in Visual Basic). is null. The type was previously created using .-or-For the current dynamic type, the property is true, but the property is false. Adds a new method to the type, with the specified name, method attributes, and calling convention. A representing the newly defined method. The name of the method. cannot contain embedded nulls. The attributes of the method. The calling convention of the method. The length of is zero.-or- The type of the parent of this method is an interface and this method is not virtual (Overridable in Visual Basic). is null. The type was previously created using .-or-For the current dynamic type, the property is true, but the property is false. Adds a new method to the type, with the specified name, method attributes, calling convention, and method signature. A representing the newly defined method. The name of the method. cannot contain embedded nulls. The attributes of the method. The calling convention of the method. The return type of the method. The types of the parameters of the method. The length of is zero.-or- The type of the parent of this method is an interface, and this method is not virtual (Overridable in Visual Basic). is null. The type was previously created using .-or-For the current dynamic type, the property is true, but the property is false. Adds a new method to the type, with the specified name, method attributes, calling convention, method signature, and custom modifiers. A object representing the newly added method. The name of the method. cannot contain embedded nulls. The attributes of the method. The calling convention of the method. The return type of the method. An array of types representing the required custom modifiers, such as , for the return type of the method. If the return type has no required custom modifiers, specify null. An array of types representing the optional custom modifiers, such as , for the return type of the method. If the return type has no optional custom modifiers, specify null. The types of the parameters of the method. An array of arrays of types. Each array of types represents the required custom modifiers for the corresponding parameter, such as . If a particular parameter has no required custom modifiers, specify null instead of an array of types. If none of the parameters have required custom modifiers, specify null instead of an array of arrays. An array of arrays of types. Each array of types represents the optional custom modifiers for the corresponding parameter, such as . If a particular parameter has no optional custom modifiers, specify null instead of an array of types. If none of the parameters have optional custom modifiers, specify null instead of an array of arrays. The length of is zero.-or- The type of the parent of this method is an interface, and this method is not virtual (Overridable in Visual Basic). -or-The size of or does not equal the size of . is null. The type was previously created using .-or-For the current dynamic type, the property is true, but the property is false. Adds a new method to the type, with the specified name, method attributes, and method signature. The defined method. The name of the method. cannot contain embedded nulls. The attributes of the method. The return type of the method. The types of the parameters of the method. The length of is zero.-or- The type of the parent of this method is an interface, and this method is not virtual (Overridable in Visual Basic). is null. The type was previously created using .-or-For the current dynamic type, the property is true, but the property is false. Specifies a given method body that implements a given method declaration, potentially with a different name. The method body to be used. This should be a MethodBuilder object. The method whose declaration is to be used. does not belong to this class. or is null. The type was previously created using .-or- The declaring type of is not the type represented by this . Defines a nested type, given its name. The defined nested type. The short name of the type. cannot contain embedded nulls. Length of is zero or greater than 1023. -or-This operation would create a type with a duplicate in the current assembly. is null. Defines a nested type, given its name and attributes. The defined nested type. The short name of the type. cannot contain embedded nulls. The attributes of the type. The nested attribute is not specified.-or- This type is sealed.-or- This type is an array.-or- This type is an interface, but the nested type is not an interface.-or- The length of is zero or greater than 1023. -or-This operation would create a type with a duplicate in the current assembly. is null. Defines a nested type, given its name, attributes, and the type that it extends. The defined nested type. The short name of the type. cannot contain embedded nulls. The attributes of the type. The type that the nested type extends. The nested attribute is not specified.-or- This type is sealed.-or- This type is an array.-or- This type is an interface, but the nested type is not an interface.-or- The length of is zero or greater than 1023. -or-This operation would create a type with a duplicate in the current assembly. is null. Defines a nested type, given its name, attributes, the total size of the type, and the type that it extends. The defined nested type. The short name of the type. cannot contain embedded nulls. The attributes of the type. The type that the nested type extends. The total size of the type. The nested attribute is not specified.-or- This type is sealed.-or- This type is an array.-or- This type is an interface, but the nested type is not an interface.-or- The length of is zero or greater than 1023. -or-This operation would create a type with a duplicate in the current assembly. is null. Defines a nested type, given its name, attributes, the type that it extends, and the packing size. The defined nested type. The short name of the type. cannot contain embedded nulls. The attributes of the type. The type that the nested type extends. The packing size of the type. The nested attribute is not specified.-or- This type is sealed.-or- This type is an array.-or- This type is an interface, but the nested type is not an interface.-or- The length of is zero or greater than 1023. -or-This operation would create a type with a duplicate in the current assembly. is null. Defines a nested type, given its name, attributes, size, and the type that it extends. The defined nested type. The short name of the type. cannot contain embedded null values. The attributes of the type. The type that the nested type extends. The packing size of the type. The total size of the type. Defines a nested type, given its name, attributes, the type that it extends, and the interfaces that it implements. The defined nested type. The short name of the type. cannot contain embedded nulls. The attributes of the type. The type that the nested type extends. The interfaces that the nested type implements. The nested attribute is not specified.-or- This type is sealed.-or- This type is an array.-or- This type is an interface, but the nested type is not an interface.-or- The length of is zero or greater than 1023. -or-This operation would create a type with a duplicate in the current assembly. is null.-or-An element of the array is null. Adds a new property to the type, with the given name, attributes, calling convention, and property signature. The defined property. The name of the property. cannot contain embedded nulls. The attributes of the property. The calling convention of the property accessors. The return type of the property. The types of the parameters of the property. The length of is zero. is null. -or- Any of the elements of the array is null. The type was previously created using . Adds a new property to the type, with the given name, calling convention, property signature, and custom modifiers. The defined property. The name of the property. cannot contain embedded nulls. The attributes of the property. The calling convention of the property accessors. The return type of the property. An array of types representing the required custom modifiers, such as , for the return type of the property. If the return type has no required custom modifiers, specify null. An array of types representing the optional custom modifiers, such as , for the return type of the property. If the return type has no optional custom modifiers, specify null. The types of the parameters of the property. An array of arrays of types. Each array of types represents the required custom modifiers for the corresponding parameter, such as . If a particular parameter has no required custom modifiers, specify null instead of an array of types. If none of the parameters have required custom modifiers, specify null instead of an array of arrays. An array of arrays of types. Each array of types represents the optional custom modifiers for the corresponding parameter, such as . If a particular parameter has no optional custom modifiers, specify null instead of an array of types. If none of the parameters have optional custom modifiers, specify null instead of an array of arrays. The length of is zero. is null. -or- Any of the elements of the array is null. The type was previously created using . Adds a new property to the type, with the given name and property signature. The defined property. The name of the property. cannot contain embedded nulls. The attributes of the property. The return type of the property. The types of the parameters of the property. The length of is zero. is null. -or- Any of the elements of the array is null. The type was previously created using . Adds a new property to the type, with the given name, property signature, and custom modifiers. The defined property. The name of the property. cannot contain embedded nulls. The attributes of the property. The return type of the property. An array of types representing the required custom modifiers, such as , for the return type of the property. If the return type has no required custom modifiers, specify null. An array of types representing the optional custom modifiers, such as , for the return type of the property. If the return type has no optional custom modifiers, specify null. The types of the parameters of the property. An array of arrays of types. Each array of types represents the required custom modifiers for the corresponding parameter, such as . If a particular parameter has no required custom modifiers, specify null instead of an array of types. If none of the parameters have required custom modifiers, specify null instead of an array of arrays. An array of arrays of types. Each array of types represents the optional custom modifiers for the corresponding parameter, such as . If a particular parameter has no optional custom modifiers, specify null instead of an array of types. If none of the parameters have optional custom modifiers, specify null instead of an array of arrays. The length of is zero. is null-or- Any of the elements of the array is null The type was previously created using . Defines the initializer for this type. Returns a type initializer. The containing type has been previously created using . Defines an uninitialized data field in the .sdata section of the portable executable (PE) file. A field to reference the data. The name used to refer to the data. cannot contain embedded nulls. The size of the data field. The attributes for the field. Length of is zero.-or- is less than or equal to zero, or greater than or equal to 0x003f0000. is null. The type was previously created using . Retrieves the full path of this type. Read-only. Retrieves the full path of this type. Gets a value that indicates the covariance and special constraints of the current generic type parameter. A bitwise combination of values that describes the covariance and special constraints of the current generic type parameter. Gets the position of a type parameter in the type parameter list of the generic type that declared the parameter. If the current object represents a generic type parameter, the position of the type parameter in the type parameter list of the generic type that declared the parameter; otherwise, undefined. Returns the constructor of the specified constructed generic type that corresponds to the specified constructor of the generic type definition. A object that represents the constructor of corresponding to , which specifies a constructor belonging to the generic type definition of . The constructed generic type whose constructor is returned. A constructor on the generic type definition of , which specifies which constructor of to return. does not represent a generic type. -or- is not of type .-or-The declaring type of is not a generic type definition. -or-The declaring type of is not the generic type definition of . Calling this method always throws . This method is not supported. No value is returned. This method is not supported. Returns the field of the specified constructed generic type that corresponds to the specified field of the generic type definition. A object that represents the field of corresponding to , which specifies a field belonging to the generic type definition of . The constructed generic type whose field is returned. A field on the generic type definition of , which specifies which field of to return. does not represent a generic type. -or- is not of type .-or-The declaring type of is not a generic type definition. -or-The declaring type of is not the generic type definition of . Returns a object that represents a generic type definition from which the current type can be obtained. A object representing a generic type definition from which the current type can be obtained. The current type is not generic. That is, returns false. Returns the method of the specified constructed generic type that corresponds to the specified method of the generic type definition. A object that represents the method of corresponding to , which specifies a method belonging to the generic type definition of . The constructed generic type whose method is returned. A method on the generic type definition of , which specifies which method of to return. is a generic method that is not a generic method definition.-or- does not represent a generic type.-or- is not of type .-or-The declaring type of is not a generic type definition. -or-The declaring type of is not the generic type definition of . Retrieves the GUID of this type. Read-only. Retrieves the GUID of this type This method is not currently supported for incomplete types. Gets a value that indicates whether a specified object can be assigned to this object. true if can be assigned to this object; otherwise, false. The object to test. Returns a value that indicates whether the current dynamic type has been created. true if the method has been called; otherwise, false. Gets a value indicating whether the current type is a generic type parameter. true if the current object represents a generic type parameter; otherwise, false. Gets a value indicating whether the current type is a generic type. true if the type represented by the current object is generic; otherwise, false. Gets a value indicating whether the current represents a generic type definition from which other generic types can be constructed. true if this object represents a generic type definition; otherwise, false. Returns a object that represents a one-dimensional array of the current type, with a lower bound of zero. A object representing a one-dimensional array type whose element type is the current type, with a lower bound of zero. Returns a object that represents an array of the current type, with the specified number of dimensions. A object that represents a one-dimensional array of the current type. The number of dimensions for the array. is not a valid array dimension. Returns a object that represents the current type when passed as a ref parameter (ByRef in Visual Basic). A object that represents the current type when passed as a ref parameter (ByRef in Visual Basic). Substitutes the elements of an array of types for the type parameters of the current generic type definition, and returns the resulting constructed type. A representing the constructed type formed by substituting the elements of for the type parameters of the current generic type. An array of types to be substituted for the type parameters of the current generic type definition. The current type does not represent the definition of a generic type. That is, returns false. is null.-or- Any element of is null. Any element of does not satisfy the constraints specified for the corresponding type parameter of the current generic type. Returns a object that represents the type of an unmanaged pointer to the current type. A object that represents the type of an unmanaged pointer to the current type. Retrieves the dynamic module that contains this type definition. Read-only. Retrieves the dynamic module that contains this type definition. Retrieves the name of this type. Read-only. Retrieves the name of this type. Retrieves the namespace where this TypeBuilder is defined. Read-only. Retrieves the namespace where this TypeBuilder is defined. Retrieves the packing size of this type. Read-only. Retrieves the packing size of this type. Sets a custom attribute using a specified custom attribute blob. The constructor for the custom attribute. A byte blob representing the attributes. or is null. For the current dynamic type, the property is true, but the property is false. Set a custom attribute using a custom attribute builder. An instance of a helper class to define the custom attribute. is null. For the current dynamic type, the property is true, but the property is false. Sets the base type of the type currently under construction. The new base type. The type was previously created using .-or- is null, and the current instance represents an interface whose attributes do not include .-or-For the current dynamic type, the property is true, but the property is false. is an interface. This exception condition is new in the .NET Framework version 2.0. Retrieves the total size of a type. Read-only. Retrieves this type’s total size. Returns the name of the type excluding the namespace. Read-only. The name of the type excluding the namespace. Represents that total size for the type is not specified.