当前位置:网站首页>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();
}
}边栏推荐
- C# 分页计算 总页数、当前页数据集合
- Which securities company is good for retail investors to open an account? Is it safe to open a mobile account?
- Cve-2022-22965 reappearance
- 请问,中衍期货是不是靠谱的?资金安全吗?
- 开源SPL重新定义OLAP Server
- How MySQL enables multiple auto incrementing columns in a table
- Double hands of daily practice of Li Kou 2day9
- 机器学习之随机森林
- 11 方法引用和构造器应用
- 5G时代,如何打造一场令人惊叹的VR直播活动?
猜你喜欢

Understand the quality assurance of open source software (OSS)

开源SPL重新定义OLAP Server
How MySQL enables multiple auto incrementing columns in a table

After reading this article, I will teach you to play with the penetration test target vulnhub - drivetingblues-5
Redis+Caffeine两级缓存的实现

Getting started with go web programming: validators

轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷

Database employment consulting system for your help

Shan Zhiguang, chairman of BSN Development Alliance: DDC can provide the underlying support for the development of China's meta universe industry

3DMAX modeling notes (I): introducing 3DMAX and creating the first model Hello World
随机推荐
d的嵌套赋值
Vcip2021: super resolution using decoded information
Cve - 2022 - 22965 Resume
CVE-2022-22965复现
能让Jellyfin直接挂载阿里云盘的aliyundrive-fuse
ThoughtWorks.QRCode和ZXing.Net 二维码,网址可以直接跳转
线下实体店结合VR全景,让虚拟购物更加真实
Loot、USDT
Offline physical stores combined with VR panorama make virtual shopping more realistic
JasperReport报表生成工具的基本使用和常见问题
Flink status management
Double hands of daily practice of Li Kou 2day9
Tasks and responsibilities of the test team and basic concepts of testing
基于SSH框架甜品商城管理系统【源码+数据库】
机器学习之随机森林
加密市场进入寒冬,是“天灾”还是“人祸”?
BSN发展联盟理事长单志广:DDC可为中国元宇宙产业发展提供底层支撑
Understand the quality assurance of open source software (OSS)
VCIP2021:利用解码信息进行超分辨率
CVE-2022-22965複現