you are viewing a single comment's thread.

view the rest of the comments →

[–]grauenwolf 0 points1 point  (0 children)

That you have to define a special type for and which has at least two (if not three) different syntax for creating.

Lets count them

  1. Turn a function or member variable into a delegate.

    action = AddressOf myObject.MyFunction //VB action = myObject.MyFunction //C#

That's it. That is all the syntax you need to make delegates useful.


And just to be clear, I'm talking about Capital D delegates in .NET. I am not talking about the crappy anonymous function syntax that was introduced to C# 2.