用委托类型直接加参数是Invoke(参数)的一个捷径.
其实等价调用 Invoke();

 

类似:

 

Action<string> x = Console.WriteLine;
x("2");
x.Invoke("2");

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2021-12-03
  • 2021-09-01
  • 2021-06-27
  • 2021-07-01
  • 2022-01-03
猜你喜欢
  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
  • 2021-11-18
  • 2022-12-23
相关资源
相似解决方案