private AssemblyDefinition GetAssemblyInNetGac(AssemblyNameReference reference, ReaderParameters parameters) { string[] array = new string[] { "GAC_MSIL", "GAC_32", "GAC_64", "GAC" }; string[] array2 = new string[] { string.Empty, "v4.0_" }; for (int i = 0; i < 2; i++) { for (int j = 0; j < array.Length; j++) { string text = Path.Combine(this.gac_paths[i], array[j]); string assemblyFile = BaseAssemblyResolver.GetAssemblyFile(reference, array2[i], text); if (Directory.Exists(text) && File.Exists(assemblyFile)) { return(this.GetAssembly(assemblyFile, parameters)); } } } return(null); }
private AssemblyDefinition GetAssemblyInMonoGac(AssemblyNameReference reference, ReaderParameters parameters) { for (int i = 0; i < this.gac_paths.Count; i++) { string gac = this.gac_paths[i]; string assemblyFile = BaseAssemblyResolver.GetAssemblyFile(reference, string.Empty, gac); if (File.Exists(assemblyFile)) { return(this.GetAssembly(assemblyFile, parameters)); } } return(null); }