delegate void DelegateTest();
DelegateTest delTest;
Whats the difference between calling delTest.Invoke() and delTest()? Both would execute the delegate on the current thread, right?
delegate void DelegateTest();
DelegateTest delTest;
Whats the difference between calling delTest.Invoke() and delTest()? Both would execute the delegate on the current thread, right?
That's correct. Both have the exact same result.
Given that you have properly initialized delTest
of course.
The delTest()
form is a compiler helper, underneath it is really a call to Invoke()
.