public CreateType ( string name, TypeAttributes attributes = TypeAttributes.Public, |
||
name | string | name of the type |
attributes | TypeAttributes | Attributes associated with the type |
baseClass | Base class for this type | |
interfaces | IEnumerable |
Interfaces used by this type |
return | TypeBuilder |
public virtual TypeBuilder CreateType(string name, TypeAttributes attributes = TypeAttributes.Public,
Type baseClass = null, IEnumerable<Type> interfaces = null)
{
var returnValue = new TypeBuilder(this, name, interfaces, baseClass, attributes);
Classes.Add(returnValue);
return returnValue;
}