c#委托 ,自定义函数中使用委托,列表数据排序
摘要:1.委托 Func<int, int, int> t = ( j, i ) => i + j;//自定义委托 Func 表示有返回值, 返回两个的和 Console.WriteLine( t(6,4));//输出 10 Func<int, bool> a = delegate (int j) { r
阅读全文
posted @ 2024-12-11 20:58
posted @ 2024-12-11 20:58
posted @ 2024-01-12 16:57
posted @ 2022-10-26 20:43
posted @ 2022-10-26 16:36
posted @ 2021-11-05 21:35
posted @ 2021-10-02 12:22