Cyberiafreak

"Fortunate are those who take the first steps.” ― Paulo Coelho

How to stop method overriding ? C# FAQ (tricky)

override

MSDN Ref : Read the last “topic-Consider sealing members that you override”

You can use this approach to ensure that derived classes do not modify or bypass behavior required for the current class and all derived classes.

Read from here : http://msdn.microsoft.com/en-us/library/ms229023(VS.80).aspx

Advertisements

March 11, 2010 - Posted by | Uncategorized

1 Comment »

  1. Very useful one. Thanks for sharing.

    Like

    Comment by Muruganantham | March 22, 2010 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: