Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I have an abstract class that contains an abstract method which has many classes inheriting from it. I am thinking about changing this to a delegate, but I am wondering if there would be any reason I shouldn't (any performance difference, for example). Anyone have any ideas?
"For every complex problem, there is a solution that is simple, neat, and wrong." - H. L. Mencken
  • Administrators
Posted

It really depends on what the method is used for and if you need to change it dynamically at run time or not. Without knowing more about the architecture it is difficult to make a decision.

Also under 1.0 / 1.1 delegates are slower then virtual functions although this is being addressed in 2.0

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...