Skip to content

Instantly share code, notes, and snippets.

@KageShiron
KageShiron / EnumMembers.cs
Last active April 17, 2017 01:05
blog/dotnet-name .NET Frameworkのライブラリのpublicな名前を探求する
void Main()
{
string[] dirNames = { @"C:\WINDOWS\Microsoft.NET\assembly", @"C:\WINDOWS\assembly" };
SearchMemberNames(dirNames, t => t.Name.Length > 100);
}
void SearchMemberNames(string[] dirNames, System.Func<MemberInfo, bool> judge)
{
foreach (var dir in dirNames)
System.Threading.Tasks.Parallel.ForEach(Directory.EnumerateFiles(dir, "*.dll", SearchOption.AllDirectories), f =>