Пример #1
0
 ITypeDefOrRef?GetScopeTypeRefInModule(ModuleDef mod)
 {
     foreach (var typeref in mod.GetTypeRefs())
     {
         if (new SigComparer().Equals(analyzedType, typeref))
         {
             return(typeref);
         }
     }
     return(null);
 }
Пример #2
0
 bool AssemblyReferencesScopeType(ModuleDef mod)
 {
     foreach (var typeref in mod.GetTypeRefs())
     {
         if (new SigComparer().Equals(typeScope, typeref))
         {
             return(true);
         }
     }
     return(false);
 }
Пример #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);
 }