Exemplo n.º 1
0
 ITypeDefOrRef?GetScopeTypeRefInModule(ModuleDef mod)
 {
     foreach (var typeref in mod.GetTypeRefs())
     {
         if (new SigComparer().Equals(analyzedType, typeref))
         {
             return(typeref);
         }
     }
     return(null);
 }
Exemplo n.º 2
0
 bool AssemblyReferencesScopeType(ModuleDef mod)
 {
     foreach (var typeref in mod.GetTypeRefs())
     {
         if (new SigComparer().Equals(typeScope, typeref))
         {
             return(true);
         }
     }
     return(false);
 }
Exemplo n.º 3
0
 bool AssemblyReferencesScopeType(ModuleDef mod)
 {
     foreach (var typeRef in mod.GetTypeRefs())
     {
         if (new SigComparer().Equals(typeScope, typeRef))
         {
             return(true);
         }
     }
     foreach (var exportedType in mod.ExportedTypes)
     {
         if (!exportedType.MovedToAnotherAssembly)
         {
             continue;
         }
         if (new SigComparer().Equals(typeScope, exportedType))
         {
             return(true);
         }
     }
     return(false);
 }