logoalt Hacker News

jayd16 • today at 6:15 PM • 1 reply • view on HN

What is the significant difference to Java? In C# you would write something like Foo<out Bar> instead of Foo<? extends Bar> or some such thing.


Replies

ysleepy • today at 8:33 PM

In c# you can't be generic over generic types. In java you can. Also enums can't implement interfaces.