Skip to content
Discussion options

You must be logged in to vote

If you read up on the history of C# Generics, introduced in C# 2.0, you'll find that they were originally going to be implemented by type erasure (yes, really!).

Fortunately, some of the smart folks from Microsoft Research were able to successfully lobby for generics to be deeply wired into the CLR, resulting in the superior implementation we enjoy today.

Having the CLR fully aware of generics allows the JIT compiler to do some very smart things with optimization, increasing the speed of operation and, in some cases, reducing the memory footprint.

One of the defining features of the C# language is the way that features are fully baked - they take the time to consider the implications of c…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@leandromoh
Comment options

@AartBluestoke
Comment options

@cheong00
Comment options

@leandromoh
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by leandromoh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants