What are Generics in Dotnet Framework with c# example
Loading
What are Generics in Dotnet Framework with c# example
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajanikant HawaldarPosted May 21, 2025, 2:17 PM
Refer below articles/blog
https://www.c-sharpcorner.com/UploadFile/84c85b/using-generics-with-C-Sharp/
https://www.c-sharpcorner.com/article/generics-in-C-Sharp3/
Sangeetha SPosted May 21, 2025, 4:15 AM
Generics in the .NET Framework are a powerful feature that allow you to define classes, interfaces, and methods with a placeholder for the data type. This enables type safety, code reusability, and performance improvements by avoiding boxing/unboxing and type casting.
Why Use Generics?
Built-in Generic Types
ListDictionaryQueue,StackNullable(for value types)