string file = @"C:\Windows\winsxs\x86_netfx35linq-system.core_31bf3856ad364e35_6.1.7601.17514_none_6161fc35ed136622\System.Core.dll";
            Assembly assembly = Assembly.LoadFrom(file);

            var pubTypeQuery = from type in assembly.GetTypes()
                               where type.IsPublic
                               from method in type.GetMethods()
                               where method.ReturnType == typeof(string)
                               group method.ToString() by type.ToString();

            foreach (var item in pubTypeQuery)
            {
                Console.WriteLine(item.Key);
                foreach (var item1 in item)
                {
                    Console.WriteLine(item1);                    
                }                
            }

            Console.WriteLine();
            Console.WriteLine("Press Any Key to Exit...");
            Console.ReadKey();

 

相关文章:

  • 2021-07-10
  • 2021-12-15
  • 2021-08-09
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-12-04
猜你喜欢
  • 2021-10-22
  • 2021-08-13
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
相关资源
相似解决方案