当前位置:网站首页>C#泛型方法
C#泛型方法
2022-06-22 13:04:00 【苍狼王unity学院】
class Program {
public static string GetSum<T,T2,T3,T4>(T a, T b)
{
return a + "" + b;
}
static void Main(string[] args) {
Console.WriteLine(GetSum<int,int,int,int>(12,34));
Console.WriteLine(GetSum<double,double,double,double>(12.3,34.5));
Console.WriteLine(GetSum<string,string,string,string>("23r,","wer3l2kj"));
Console.ReadKey();
}
}边栏推荐
- [Nacos cloud native] the first step of reading the source code is to start Nacos locally
- 毕业论文写作中致谢词的常见写法及优秀范文
- Temporary recommendation on graphs via long- and short term preference fusion
- STM32F1与STM32CubeIDE编程实例-光断续传感器驱动
- 防火墙基础之策略部署
- Tasks and responsibilities of the test team and basic concepts of testing
- SQL row column conversion
- Vcip2021: super resolution using decoded information
- BSN发展联盟理事长单志广:DDC可为中国元宇宙产业发展提供底层支撑
- 软件项目验收测试范围和流程,这些你都知道吗?
猜你喜欢

Stm32f1 and stm32subeide programming example - Optical intermittent sensor drive

Cve - 2022 - 22965 Resume

"N'osez pas douter du Code, vous devez douter du Code" notez une analyse de délai de demande réseau

CVE-2022-22965複現

How to add a mask to a VR panoramic work? What is the function?

JasperReport报表生成工具的基本使用和常见问题
MySQL如何让一个表中可以有多个自增列
![[Nacos cloud native] the first step of reading the source code is to start Nacos locally](/img/f8/d9b848593cf7380a6c99ee0a8158f8.png)
[Nacos cloud native] the first step of reading the source code is to start Nacos locally

LDA study notes

技术实践 | 场景导向的音视频通话体验优化
随机推荐
技术实践 | 场景导向的音视频通话体验优化
如何给VR全景作品添加遮罩?作用是什么?
How to understand fold change? Multiple analysis?
Basic usage and FAQs of jasperreport report report generation tool
《Kubernetes监控篇:Grafana通过自动化方式添加datasource和dashboard》
程序员要不要选择软件人才外包公司?
如何实现接口异常场景测试?测试方法探索与测试工具实现
Implementation of connecting SQL server to Oracle server_ Including query implementation
MadCap Flare 2022,语言或格式的文档
数据库 就业咨询系统求各位帮下忙
Messari annual report-2022
Run sqoop1.4.5 to report warning: does not exist! HCatalog jobs will fail.
Kubernetes monitoring: grafana adds datasource and dashboard through automation
一文搞懂开放源码软件(OSS)质量保证
Opengauss database source code analysis series articles -- detailed explanation of dense equivalent query technology
Oracle stored procedure 2
防火墙基础之策略部署
A simple scientific research secret
HMS Core新闻行业解决方案:让技术加上人文的温度
In 5g era, how to create an amazing live VR activity?