C#-委托

Action

无返回值,多线程常用

cs 复制代码
Action<string> action1 = (name) => Console.WriteLine($"hello {name}");
action1("tom");

Func

有返回值,扩展方法常用,最后一个参数是输出参数

cs 复制代码
Func<int, int, double> f;

父窗体接收消息

父窗体广播消息

相关推荐
Nicole Potter7 小时前
游戏中的成就系统,我们一般会使用设计模式中的哪种模式来制作?为什么?
游戏·设计模式·面试·c#
MZWeiei7 小时前
算法:判断链表是否有环
算法·链表·c#
椒颜皮皮虾྅8 小时前
【OpenVINO™】在 Intel Ultra AI PC 设备上使用 OpenVINO™ C# API本地部署YOLOv11与YOLOv12
人工智能·c#·openvino
Nicole Potter13 小时前
请说明字符串中 string str = null string str = ““ string str = string.Empty 三者的区别
游戏·unity·面试·c#
步、步、为营15 小时前
C# 应用程序中,输入法操控
开发语言·c#·.net
夏炎黄15 小时前
c# 代码规范
c#·代码规范
xcLeigh17 小时前
WPF高级 | WPF 与数据库交互:连接、查询与数据更新
数据库·c#·wpf·交互
Whappy00118 小时前
第一节:基于Winform框架的串口助手小项目---基础控件使用《C#编程》
开发语言·c#
qq_2979080119 小时前
asp.net运输公司车辆管理系统收入与费用统计软件车辆网上申请派车软件
sqlserver·开源·c#·asp.net