System.Text.RegularExpressions.RegexTypeCompiler.DefineType C# (CSharp) Method

DefineType() private method

private DefineType ( String typename, bool ispublic, Type inheritfromclass ) : void
typename String
ispublic bool
inheritfromclass System.Type
return void
        internal void DefineType(String typename, bool ispublic, Type inheritfromclass) {
            if (ispublic)
                _typebuilder = _module.DefineType(typename, TypeAttributes.Class | TypeAttributes.Public, inheritfromclass);
            else
                _typebuilder = _module.DefineType(typename, TypeAttributes.Class | TypeAttributes.NotPublic, inheritfromclass);
        
        }