S
Steven Dorning
Is there an equivalent way in C# of writing the following
C++ code.
A and B are classes,
class B
{
private:
A m_A;
public:
const A & ReadA () const { return m_A;}
}
i.e. is there a way of returning a reference to a const
object as opposed to a reference to an non-const object.
Many Thanks
Steven
C++ code.
A and B are classes,
class B
{
private:
A m_A;
public:
const A & ReadA () const { return m_A;}
}
i.e. is there a way of returning a reference to a const
object as opposed to a reference to an non-const object.
Many Thanks
Steven