private static List <string> GetIconAssetPaths(string folderPath, string mustHaveIdentifier, string extension) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type GenerateIconsWithMipLevels.\u003CGetIconAssetPaths\u003Ec__AnonStorey3A pathsCAnonStorey3A = new GenerateIconsWithMipLevels.\u003CGetIconAssetPaths\u003Ec__AnonStorey3A(); // ISSUE: reference to a compiler-generated field pathsCAnonStorey3A.mustHaveIdentifier = mustHaveIdentifier; string str = Path.Combine(Directory.GetCurrentDirectory(), folderPath); Uri uri1 = new Uri(str); List <string> stringList = new List <string>((IEnumerable <string>)Directory.GetFiles(str, "*." + extension, SearchOption.AllDirectories)); // ISSUE: reference to a compiler-generated method stringList.RemoveAll(new Predicate <string>(pathsCAnonStorey3A.\u003C\u003Em__50)); for (int index = 0; index < stringList.Count; ++index) { Uri uri2 = new Uri(stringList[index]); Uri uri3 = uri1.MakeRelativeUri(uri2); stringList[index] = folderPath + uri3.ToString(); } return(stringList); }
private static List<string> GetIconAssetPaths(string folderPath, string mustHaveIdentifier, string extension) { // ISSUE: object of a compiler-generated type is created // ISSUE: variable of a compiler-generated type GenerateIconsWithMipLevels.\u003CGetIconAssetPaths\u003Ec__AnonStorey3A pathsCAnonStorey3A = new GenerateIconsWithMipLevels.\u003CGetIconAssetPaths\u003Ec__AnonStorey3A(); // ISSUE: reference to a compiler-generated field pathsCAnonStorey3A.mustHaveIdentifier = mustHaveIdentifier; string str = Path.Combine(Directory.GetCurrentDirectory(), folderPath); Uri uri1 = new Uri(str); List<string> stringList = new List<string>((IEnumerable<string>) Directory.GetFiles(str, "*." + extension, SearchOption.AllDirectories)); // ISSUE: reference to a compiler-generated method stringList.RemoveAll(new Predicate<string>(pathsCAnonStorey3A.\u003C\u003Em__50)); for (int index = 0; index < stringList.Count; ++index) { Uri uri2 = new Uri(stringList[index]); Uri uri3 = uri1.MakeRelativeUri(uri2); stringList[index] = folderPath + uri3.ToString(); } return stringList; }