You could cheat and write a wrapper to provide a facade for the class such
as:
internal class baseclass
{
public void basemethod()
}
internal class derivedclass : baseclass
{
public void anothermethod;
}
public SeenClass
{
derivedclass dc=new derivedclass();
public basemethod()
{
dc.basemethod();
}
public void anothermethod()
{
dc.anothermethod();
}
}
--
Bob Powell [MVP]
Visual C#, System.Drawing
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"mfc_mobile" <mf********@newsgroup.nospam> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
Hi,
I'm trying to develop a control and want to hide the base class of the
control, how do i do that?
I want to do something like the follow :-
internal class BaseClass {
}
public class SubClass : BaseClass {
}
but i get an Inconsistent accessibility error.