Home [C# 筆記] draft - Delegate 委派
Post
Cancel

[C# 筆記] draft - Delegate 委派

Delegate 委派

  • 為什麼要使用委派? 將一個方法作為參數傳遞給另一個方法
  • 委派概念 聲明一個委派類型
    委派所指向的函數必須跟委具有相同的簽名
  • 匿名函數 沒有名字的函數
  • 練習:使用委派求數組的最大值
  • 練習:使用委派求任意數組的最大值
  • 泛型委派
  • 多播委派
  • Lamda 表達式
  • 使用委派來實現窗體傳值
This post is licensed under CC BY 4.0 by the author.