T被称为类型参数(type arguments),泛型类形如:[代码]1,下例是如果定义以及实现一个泛型类代码2,下面是泛型接口的实现代码3,IEnumerable 基于32个网页-相关网页
Generic Type Argument 泛型型别引数 ; 泛型类型变量 ; 泛型类型参数
actual type argument 类型参数
type-argument 类型实参
type-argument-list opt 类型实参列表可选
type argument inference 这称为类型参数推断
identifier type-argument-list opt 标识符
algemeen type argument 泛型型别引数 ; 泛型类型参数
argument type 自变量类型 ; [计] 变元类型 ; 引数型别
argument type list 变元类型表
The type argument is the type of the value the expression evaluates to.
类型参数就是表达式要计算的值的类型。
The generic type argument declares the type of result this CriteriaQuery will return upon execution.
泛型参数声明CriteriaQuery在执行时返回的结果的类型。
As a result, there are no fundamental difficulties with allowing this to be passed as a type argument.
其结果是,在允许将this作为类型参数传递时没有任何根本性的困难。
And I don't quite remember from reading or from class how big these things are, well, it turns out -- and this is sometimes useful, later on more likely than now -- but C has a size of operator that takes an argument in parenthesis and it will tell you how much space is used to store that particular data type.
我不太记得类中的这些类型,是多大的,嗯,结果是--这个在以后比现在,可能是更有用的--不过C语言中有个sizeof的操作符,其中括号里有一个参数,它会告诉我们,要存储一个类型的数据,需要占用多大空间。
应用推荐