当前位置:网站首页>C generic method
C generic method
2022-06-22 14:28:00 【Cangwolf King unity College】
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();
}
}边栏推荐
- MadCap Flare 2022,语言或格式的文档
- 请问,中衍期货是不是靠谱的?资金安全吗?
- 作为过来人,写给初入职场的程序员的一些忠告
- Detailed explanation of rules and ideas for advance sale of deposit
- polardbx是pg还是mysql?
- Tasks and responsibilities of the test team and basic concepts of testing
- 软件项目验收测试范围和流程,这些你都知道吗?
- 如何理解fold change?倍数分析?
- 3dMax建模笔记(一):介绍3dMax和创建第一个模型Hello world
- MySQL如何让一个表中可以有多个自增列
猜你喜欢

How to implement interface exception scenario testing? Exploration of test methods and implementation of test tools
![[untitled]](/img/ff/f23e5275683d4d7b13fcb94cc77702.png)
[untitled]

“不敢去怀疑代码,又不得不怀疑代码”记一次网络请求超时分析

Simple integration of client go gin IX create

Neuron+eKuiper 实现工业物联网数据采集、清理与反控

数据库 就业咨询系统求各位帮下忙

5G时代,如何打造一场令人惊叹的VR直播活动?

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

Kukai TV ADB

Chengdu test equipment development_ Array introduction of C language for single chip microcomputer
随机推荐
unity的富文本Text的Color设置颜色全透明
机器学习之支持向量机
30岁之前一定要明白的道理
如何给VR全景作品添加遮罩?作用是什么?
Understand the quality assurance of open source software (OSS)
谈谈人生风控
d的嵌套赋值
How to add a mask to a VR panoramic work? What is the function?
Cat agile team coaching workshops - August 20
[introduction to postgraduate entrance examination] analysis of postgraduate entrance examination data of Cyberspace Security Major of Beijing Jiaotong University from 2018 to 2022
【考研攻略】北京交通大学网络空间安全专业2018-2022年考研数据分析
论文专利博客写作总结
一文搞懂开放源码软件(OSS)质量保证
Chip silicon and streaming technology
C#泛型方法
基于SSH框架甜品商城管理系统【源码+数据库】
数据库 就业咨询系统求各位帮下忙
As a passer-by, some advice for programmers who are new to the workplace
Cve-2022-22965 reappearance
unity防止按钮btn被连续点击