这两个课程几乎相同!
任何形式的帮助将不胜感激
谢谢
解决方法
我认为这会更有帮助When to use generics?
Using generic collections is generally recommended,because you gain
the immediate benefit of type safety without having to derive from a
base collection type and implement type-specific members. Generic
collection types also generally perform better than the corresponding
nongeneric collection types (and better than types that are derived
from nongeneric base collection types) when the collection elements
are value types,because with generics there is no need to Box the
elements.
Generic classes and methods combine reusability,type safety and efficiency in a way that their non-generic counterparts cannot. Generics are most frequently used with collections and the methods that operate on them. Version 2.0 of the .NET Framework class library provides a new namespace,System.Collections.Generic,which contains several new generic-based collection classes. It is recommended that all applications that target the .NET Framework 2.0 and later use the new generic collection classes instead of the older non-generic counterparts