什么是< T>在Cast< T>()或List< T>在C#中 [英] What is the <T> in Cast<T>() or List<T> in C#
本文介绍了什么是< T>在Cast< T>()或List< T>在C#中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道这可能是一个骗局,但我不能为了我的生活记住名字是什么,甚至不知道如何查找它。
我知道T是你所投的类型,但是它的技术名称是什么。
编辑
这是一个链接有关泛型的更多信息
解决方案
通用类型参数,我认为。
I know this is probably a dupe, but I can't for the life of me remember what the name is or even how to look it up.
I know T would the the Type you are casting to, but what is the technical name of it.
Edit Here is a link for more information on Generics
Why do C# and VB have Generics? What benefit do they provide? Generics, FTW
解决方案
Generic Type Parameter, I think.
这篇关于什么是< T>在Cast< T>()或List< T>在C#中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文