tags:

views:

527

answers:

2

delegate void DelegateTest();

DelegateTest delTest;

Whats the difference between calling delTest.Invoke() and delTest()? Both would execute the delegate on the current thread, right?

+1  A: 

That's correct. Both have the exact same result.

Given that you have properly initialized delTest of course.

Ronald Wildenberg
+8  A: 

The delTest() form is a compiler helper, underneath it is really a call to Invoke().

Richard
richard, i almost had to take away your vote because you misspelled "rotorua" in your profile ;)
Rob Fonseca-Ensor
@Rob: Oops, typo, now fixed.
Richard