ModuleBuilder.DefineType Method

Constructs a TypeBuilder. To define a value type, define a type that derives from ValueType.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method DefineType(String) Constructs a TypeBuilder for a private type with the specified name in this module.
Public method DefineType(String, TypeAttributes) Constructs a TypeBuilder given the type name and the type attributes.
Public method DefineType(String, TypeAttributes, Type) Constructs a TypeBuilder given type name, its attributes, and the type that the defined type extends.
Public method DefineType(String, TypeAttributes, Type, Int32) Constructs a TypeBuilder given the type name, the attributes, the type that the defined type extends, and the total size of the type.
Public method DefineType(String, TypeAttributes, Type, PackingSize) Constructs a TypeBuilder given the type name, the attributes, the type that the defined type extends, and the packing size of the type.
Public method DefineType(String, TypeAttributes, Type, Type[]) Constructs a TypeBuilder given the type name, attributes, the type that the defined type extends, and the interfaces that the defined type implements.
Public method DefineType(String, TypeAttributes, Type, PackingSize, Int32) 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.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft