B
Brian Taylor
Is it possible to inherit protected system classes to create new
functionality?
Examples include:
1. CurrencyManager
2. DataBindingsCollection
3. DataTableCollection
4. And more...
If I try and override these classes I get the following error:
<class> is inaccessible due to its protection level.
The main reason for inheriting these classes is to create new functionality.
For example, fix problems with data binding, or create new data sets and
tables without the need for casting.
Do I have any hope with this ...?
BT
Here is some code:
public class cm : System.Windows.Forms.CurrencyManager
{
protected internal cm(string s) : base (s)
{
}
}
public class x : System.Xml.XmlElement
{
public x() : base()
{
}
}
functionality?
Examples include:
1. CurrencyManager
2. DataBindingsCollection
3. DataTableCollection
4. And more...
If I try and override these classes I get the following error:
<class> is inaccessible due to its protection level.
The main reason for inheriting these classes is to create new functionality.
For example, fix problems with data binding, or create new data sets and
tables without the need for casting.
Do I have any hope with this ...?
BT
Here is some code:
public class cm : System.Windows.Forms.CurrencyManager
{
protected internal cm(string s) : base (s)
{
}
}
public class x : System.Xml.XmlElement
{
public x() : base()
{
}
}