//定义委托方法Action(无返回值)Func(有返回值) //无返回值委托 Action<string> SetKeyAndValue = delegate(string key) { //do something... }; //有返回值委托 Func<string, bool> SetKeyAndValue = delegate(string key) { //do something... return true; };
小台的IT备忘录 |
|
||
脑子越来越不好用,只能依靠烂笔头了~ |
Copyright © 2024 taiyonghai
Powered by .NET 9.0 on Kubernetes |