News for hackers. Stuff that matters.
Re:How generics were added to .NET by Sharlin on Tuesday March 06, 2018 @10:39AM (#16529459)
To be fair, raw types like List are really deprecated and only exist in order to interface with legacy APIs.
Re:How generics were added to .NET by tehlike on Tuesday March 06, 2018 @12:04PM (#16530112)
Java? In a lot of cases you still need them. Anything that touches reflections is in that category, plenty of di/ioc systems, or mappers, etc relies on them.
Re:How generics were added to .NET by TheCoelacanth on Tuesday March 06, 2018 @12:17PM (#16530208)
Can you give an example?

Most of the time when reflection is needed I see something like this instead of just a plain list type.

    <T> void foo(List<T> list, Class<? extends T> type) { ... }