Пример #1
0
        TypeSig ReadType()
        {
            var name         = ReadUTF8String();
            var asmRefFinder = new CAAssemblyRefFinder(module);
            var type         = TypeNameParser.ParseAsTypeSigReflection(module, UTF8String.ToSystemStringOrEmpty(name), asmRefFinder);

            if (type == null)
            {
                throw new CABlobParserException("Could not parse type");
            }
            return(type);
        }
Пример #2
0
        TypeSig ReadType(bool canReturnNull)
        {
            var name = ReadUTF8String();

            if (canReturnNull && (object)name == null)
            {
                return(null);
            }
            var asmRefFinder = new CAAssemblyRefFinder(module);
            var type         = TypeNameParser.ParseAsTypeSigReflection(module, UTF8String.ToSystemStringOrEmpty(name), asmRefFinder, gpContext);

            if (type == null)
            {
                throw new CABlobParserException("Could not parse type");
            }
            return(type);
        }
Пример #3
0
 TypeSig ReadType()
 {
     var name = ReadUTF8String();
     var asmRefFinder = new CAAssemblyRefFinder(module);
     var type = TypeNameParser.ParseAsTypeSigReflection(module, UTF8String.ToSystemStringOrEmpty(name), asmRefFinder);
     if (type == null)
         throw new CABlobParserException("Could not parse type");
     return type;
 }
Пример #4
0
		TypeSig ReadType(bool canReturnNull) {
			var name = ReadUTF8String();
			if (canReturnNull && (object)name == null)
				return null;
			var asmRefFinder = new CAAssemblyRefFinder(module);
			var type = TypeNameParser.ParseAsTypeSigReflection(module, UTF8String.ToSystemStringOrEmpty(name), asmRefFinder, gpContext);
			if (type == null)
				throw new CABlobParserException("Could not parse type");
			return type;
		}