C# Delegates in Java

May 23, 2003 16:51 · 69 words · 1 minute read

Here is a way to get something like C# Delegates in Java. A delegate is basically an object representing a bound method. I didn’t realize that C# had this, and it’s a very nice feature that I wish Java had. The implementation the authors have done is pretty good, but it would be nice to have the same kind of syntactic sugar that C# provides here. Maybe J2SE 1.6?