L
Laurent
Hi all,
I have a base class, let's say
class A
{
...
public object Data
{
get { ....}
set { ... }
}
}
And a class B that inherits from A:
class B : A
{
B()
{
Data = new object[3];
}
public MyData
{
{ get { return (MyData) Data[0]; }
{ set { Data[0] = value; }
}
...
}
I would like to have the property Data in the class B "protected" because
this property is used internaly by B and cannot be changed.
I have several derived classes from A and each of them has their own
properties to expose.
Thanks
Laurent
I have a base class, let's say
class A
{
...
public object Data
{
get { ....}
set { ... }
}
}
And a class B that inherits from A:
class B : A
{
B()
{
Data = new object[3];
}
public MyData
{
{ get { return (MyData) Data[0]; }
{ set { Data[0] = value; }
}
...
}
I would like to have the property Data in the class B "protected" because
this property is used internaly by B and cannot be changed.
I have several derived classes from A and each of them has their own
properties to expose.
Thanks
Laurent