Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }