Re:Microsoft's office: Why insiders think top management has...
by guelo on Thursday April 07, 2011 @10:43PM
(#2422188)
Hmm, sounds like what I said with "unless you're doing some crazy reflection stuff ", and it sounds like a solution that reduces the readability and maintainability. But maybe I'd need to see a good example to appreciate it.
Re:Microsoft's office: Why insiders think top management has...
by ootachi on Thursday April 07, 2011 @10:58PM
(#2422224)
Easiest example: You can do "instanceof T" with generic T in C#. You can't in Java.
Re:Microsoft's office: Why insiders think top management has...
by kenjackson on Thursday April 07, 2011 @11:27PM
(#2422290)
Take a look at: http://en.wikipedia.org/wiki/Comparison_of_C_Sharp_and_Java#...
Good examples there of the differences.
For example, I use this to create strongly-typed bindings to individual fields/properties of class instances at runtime, which lets me pass around objects of types like 'BoundMember<int>', and generically store into them - essentially the same as 'ref int', except it can outlive function scope. This is really useful when doing asynchronous programming, and it lets you kill duplication when building things like configuration dialogs.