什么方法<类名>意思? [英] What does Method<ClassName> mean?

查看:82
本文介绍了什么方法<类名>意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了现在这个语法几次,它的开始让我担心,



例如:

 的iCalendar的iCal =新的iCalendar(); 
事件EVT = iCal.Create<事件>();



谷歌不能帮助,但我知道SO可以的!


< DIV CLASS =h2_lin>解决方案

这是一个泛型方法,创建声明类型参数,并检查该链接以获取更多信息:




I've seen this syntax a couple times now, and it's beginning to worry me,

For example:

iCalendar iCal = new iCalendar();
Event evt = iCal.Create<Event>();

Google can't help, but I know SO can!

解决方案

It's a Generic Method, Create is declared with type parameters, and check this links for more information:

这篇关于什么方法&LT;类名&GT;意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆