Generics
are allowing us to design classes and methods decoupled from the data types.
Generics
are used to make the code reusable and which intern decreases the code
redundancy and increases the performance and type safety.
Namespace
for Generics: System.Collections.Generic
Generic
Collections à
List<T>, Dictionary<TKey, TValue>, Stack<T>, Queue<T>
Non-Generic
Collections à Array List, Hash table, Stack, Queue.
No comments:
Post a Comment