||A Java Programmer Looks at C# Delegates|
|Subject:||anonymous inner classes|
I've been working exclusively with C# (at work, at least) since January 2003, and before that was a Java programmer for a couple of years. Personally I find delegates to be only a slight improvement over anonymous inner classes. While the anonymous class route does require you to put in a couple of braces (which some consider "ugly" or "unreadable"), I personally find it quite natural. IntelliJ will even stub out all of the methods for you automatically, so you don't actually end up doing much more typing than with a delegate.
Showing messages 1 through 1 of 1.
anonymous inner classes
2003-05-22 11:30:52 anonymous2 [View]