宣告泛型物件只使用泛型名称(generic type name),则预设会使用 Object 型别,使用此类物件须自行转换型态,且编译器会发出 warning 讯息。
基于12个网页-相关网页
不要产生泛型类型参数的哈希值,使用一个易懂的类型名称作为替代。
Suppress the generation of a generic type parameter hash code and provide a legible type name instead.
该对象随后使用强类型属性和泛型名称值字典公开有关浏览器功能的信息。
The object in turn exposes information about browser capabilities using strongly typed properties and a generic name-value dictionary.
务必使用描述性名称命名泛型类型参数,除非单个字母名称完全可以让人了解它表示的含义,而描述性名称不会有更多的意义。
Do name generic type parameters with descriptive names, unless a single letter name is completely self explanatory and a descriptive name would not add value.
应用推荐