Yea.Reflection.Emit.Assembly.CreateType C# (CSharp) Method

CreateType() public method

Creates a type builder
public CreateType ( string name, TypeAttributes attributes = TypeAttributes.Public, Type baseClass = null, IEnumerable interfaces = null ) : TypeBuilder
name string name of the type
attributes TypeAttributes Attributes associated with the type
baseClass System.Type 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;
        }