L
Laban
Hi,
I am new to C# & .NET.
I have a class A which contains a protected member M that I would like to
access. If I derive my own class B from A, I can access M from within the
class, and also expose it via a property. The problem is that an instance
of B cannot be used where an instance of A is expected (unsafe cast), so it
does not solve my problem. Of course I can write a soution that does not
need access to M, but I am trying to find out if there are other
alternatives.
Could anyone give me some recommendations for situations like the above?
Thanks,
Laban
Ps. I use .NET 1.1
I am new to C# & .NET.
I have a class A which contains a protected member M that I would like to
access. If I derive my own class B from A, I can access M from within the
class, and also expose it via a property. The problem is that an instance
of B cannot be used where an instance of A is expected (unsafe cast), so it
does not solve my problem. Of course I can write a soution that does not
need access to M, but I am trying to find out if there are other
alternatives.
Could anyone give me some recommendations for situations like the above?
Thanks,
Laban
Ps. I use .NET 1.1