Exemplo n.º 1
0
        internal static Type ExtractTypeValue(ITypeUniverse universe, Module module, byte[] blob, ref int index)
        {
            Type   type = null;
            string str  = SignatureUtil.ExtractStringValue(blob, ref index);

            if (!string.IsNullOrEmpty(str))
            {
                type = System.Reflection.Adds.TypeNameParser.ParseTypeName(universe, module, str, false);
                if (type == null)
                {
                    module = universe.GetSystemAssembly().ManifestModule;
                    type   = System.Reflection.Adds.TypeNameParser.ParseTypeName(universe, module, str);
                }
            }
            return(type);
        }