Exemple #1
0
 protected static TypeDefinition Resolve(IEnumerable <XmlNsDef> xmlns, string name, out XmlNsDef def)
 {
     foreach (var i in xmlns)
     {
         var type = i.Assembly.MainModule.GetType(i.ClrNamespace, name);
         if (type != null)
         {
             def = i;
             return(type);
         }
     }
     def = xmlns.First();
     return(null);
 }
Exemple #2
0
 protected static TypeDefinition Resolve(IEnumerable<XmlNsDef> xmlns, string name, out XmlNsDef def)
 {
     foreach (var i in xmlns)
     {
         var type = i.Assembly.MainModule.GetType(i.ClrNamespace, name);
         if (type != null)
         {
             def = i;
             return type;
         }
     }
     def = xmlns.First();
     return null;
 }