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