delegate int del(int a);  

static void Main(string[] args) { //匿名方法的几种表现形式 del del = delegate (int x) { return x; }; del(1); //2 del del2 = (int x) => { return x; }; //3 del del3 = (x) => { return x; }; //4 del del4 = x => { return x; }; //5 del del5 = x => x; }

 

相关文章:

  • 2022-12-23
  • 2021-09-19
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2021-10-23
  • 2021-12-04
  • 2021-12-12
  • 2022-12-23
相关资源
相似解决方案