foreach (var parameter in typeof(类名).GetMethod("方法名").GetParameters())
            {
                Console.WriteLine(parameter.ParameterType);//参数类型
                Console.WriteLine(parameter.Position);//参数位置
                Console.WriteLine(parameter.Name);//参数名
            }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2021-06-25
  • 2021-09-24
猜你喜欢
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案