示例#1
0
        public static TypeReference ParseType(ModuleDefinition module, string fullname, bool typeDefinitionOnly = false)
        {
            if (string.IsNullOrEmpty(fullname))
            {
                return(null);
            }

            var parser = new TypeParser(fullname);

            return(GetTypeReference(module, parser.ParseType(true), typeDefinitionOnly));
        }
示例#2
0
 public TypeReference GetType(string fullName, bool runtimeName)
 {
     return(runtimeName
                         ? TypeParser.ParseType(this, fullName, typeDefinitionOnly: true)
                         : GetType(fullName));
 }