Yea.Reflection.Emit.TypeBuilder.TypeBuilder C# (CSharp) Method

TypeBuilder() public method

Constructor
public TypeBuilder ( Assembly assembly, string name, IEnumerable interfaces, Type baseClass, TypeAttributes attributes ) : System
assembly Assembly Assembly to generate the type within
name string name of the type
interfaces IEnumerable Interfaces that the type implements
baseClass System.Type Base class for the type
attributes TypeAttributes attributes for the type (public, private, etc.)
return System
        public TypeBuilder(Assembly assembly, string name, IEnumerable<Type> interfaces,
                           Type baseClass, TypeAttributes attributes)
        {
            if (assembly == null)
                throw new ArgumentNullException("assembly");
            if (string.IsNullOrEmpty(name))
                throw new ArgumentNullException("name");
            Assembly = assembly;
            Name = name;
            Interfaces = new List<Type>();
            if (interfaces != null)
                Interfaces.Add(interfaces);
            BaseClass = baseClass;
            Attributes = attributes;
            Methods = new List<IMethodBuilder>();
            Fields = new List<FieldBuilder>();
            Properties = new List<IPropertyBuilder>();
            Constructors = new List<IMethodBuilder>();
            Builder = assembly.Module.DefineType(assembly.Name + "." + name, attributes, baseClass,
                                                 Interfaces.ToArray(x => x));
        }