Difference between generics and genericcollections?
what is difference between generics and genericcollections? with example
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajeev PunhaniRank #551 · 4.4K reputationPosted Feb 9, 2016, 4:22 PM EST
Vipan SharmaRank #1,589 · 999 reputationPosted Feb 9, 2016, 6:35 PM EST
Raja TRank #685 · 3.5K reputationPosted Feb 9, 2016, 6:42 PM EST
Generics are different from generic collections.Generic collections are emerged from generic concept. It helps us to maximize code reuse, performance and type safety.
Generics are strongly type collections.
Generics helps to decouple the data-type from the logical code snippet which makes the code to reuse again and again.
We can use generic collections in our code by calling the namespace "using System.Collections.Generic".
Generic Collections helps us to create flexible type-safe, strong type collections at compile time.
Generic collections helps us to separate the collection logic (Add, Search, Remove, Clear) from different data-types available in .net.
more details check below linkSujeet SumanRank #790 · 2.9K reputationPosted Feb 9, 2016, 8:23 PM EST