SgDotNet
Singapore Professional .NET User Group -For Cool Developers

In Delegates, class or objects?

rated by 0 users
This post has 1 Reply | 0 Followers

Top 200 Contributor
Posts 8
Atlantean Posted: 09-12-2007 7:58 PM

Hi, delegates are new to me, just wondering if anyone has any opinions in regards to delegating to functions in a static class or an object instance for common class functions (meaning when there is a choice to choose between class or object). from surface it looks like it's better with object instance since I can support functions such as target. I am also guessing pointing to a static class would be faster since I don't have to instantiate an object.

 

Top 25 Contributor
Posts 184
use whatever suits the situation. i wouldn't worry about performance, i'm pretty sure the difference is negligible.

http://devpinoy.org/blogs/cruizer

Page 1 of 1 (2 items) | RSS
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems