![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
which one is faster? A() or AA.Invoke() Invoking a method directly will likely always be faster than invoking it through a delegate. But whether or not the difference is significant depends on what you're doing. Mattias -- Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com Please reply only to the newsgroup. |
#3
| |||
| |||
|
|
I still got one question, "difference is significant depends on what you're doing". Can you give me a sample about the difference. I thought it should not be a huge difference. Why don't you measure it yourself? Mattias -- Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com Please reply only to the newsgroup. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |