C# Action和Func委託

簡單理解:Action和Func均可以實現委託,Action是無返回值的委託,Func是有返回值的委託。 代碼: private void btnRun_Click(object sender, RoutedEventArgs e) { //Action 調用 Action act = new Action(InitData);
相關文章
相關標籤/搜索