D
Dave
I have a C# collection class that inherits from SortedList. I want to be
able to hide certain methods such as Add. How do I do that?
able to hide certain methods such as Add. How do I do that?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dave said:I have a C# collection class that inherits from SortedList. I want to be
able to hide certain methods such as Add. How do I do that?
profdotnet said:Use New keyword in C# to hide inherited methods from base class.
Check out this link.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vclrfnewoppg.asp
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.