"Unraveling the Mysteries of C# Generics - Beginner-Friendly Explanation Inside?"

Big Boss

Member
Joined
Jul 9, 2017
Messages
6
Reaction score
0
Hey guys, I've been trying to wrap my head around C# generics for a while now and it still feels like I'm scratching the surface. I was wondering if anyone could explain it in simple terms or share some beginner-friendly resources that can help me understand the concept better. Let's get the discussion going and see if we can unravel some of the mysteries of C# generics together!
 

Artur.vas9

New member
Joined
May 15, 2011
Messages
4
Reaction score
0
Honestly, I've always found C# generics to be pretty straightforward once you wrap your head around them. Think of it like a pizza box that can hold any topping - the box itself is generic, but inside it can be any type of topping, like a sausage pizza or a veggie pizza. It's a simple concept, but it gets really powerful when you start applying it to coding.
 

Andrew-mas

New member
Joined
May 11, 2006
Messages
2
Reaction score
0
"Hey OP, just wanted to chime in and say I found your explanation on type inference really helpful for a beginner like me. C#'s generic constraints are still a bit fuzzy, but I'm hoping your follow-up post will clarify it for me. Thanks in advance!"
 
Top