Exemple #1
0
        public ICLRType GetType(string fullname)
        {
            var            type  = environment.GetType(fullname);
            ICLRType_Sharp stype = type as ICLRType_Sharp;

            if (stype != null && stype.NeedCCtor)
            {
                //执行.cctor
                stype.InvokeCCtor(this);
            }
            return(type);
        }
Exemple #2
0
        public ICLRType GetType(string fullname)
        {
            ICLRType       type           = this.environment.GetType(fullname);
            ICLRType_Sharp iCLRType_Sharp = type as ICLRType_Sharp;
            bool           flag           = iCLRType_Sharp != null && iCLRType_Sharp.NeedCCtor;

            if (flag)
            {
                iCLRType_Sharp.InvokeCCtor(this);
            }
            return(type);
        }
Exemple #3
0
        ICLRType GetType(string fullname, Mono.Cecil.ModuleDefinition module)
        {
            var            type  = environment.GetType(fullname, module);
            ICLRType_Sharp stype = type as ICLRType_Sharp;

            if (stype != null && stype.NeedCCtor)
            {
                //执行.cctor
                stype.InvokeCCtor(this);
            }
            return(type);
        }