||A Java Programmer Looks at C# Delegates|
|Subject:||anonymous inner classes|
Response to: anonymous inner classes
Delegates actually are bound to a class (although delegates referencing static methods are also possible).
For example, you could have "delegate int CountDelegate()" and then have "new CountDelegate(CounterInstance.CountMethod)". In that case the CounterInstance holds the counter state between delegates calls. This is similar to what an inner class would achieve.
Hear us Roar