[Mono-list] C# General Question...
Eric J. Peters
erpeters@informationinplace.com
Fri, 10 Jan 2003 14:09:36 -0500
Hi-
While this isn't a mono-specific question, I think this list, being
very technical and C# based, is the best place I know of to ask.
Imagine a class as shown here:
class A {
private int m_data = 1;
public int Data {
get { return m_data; }
}
protected int Data {
set { m_data = value; }
}
}
Obviously, this is a compile-time error. My specific question is if
there is a language mechanism to allow for different access levels between the
two different accessors. If not, then I would be interested in hearing why
not -- it seems like a significant oversight to me.
Thanks,
-Eric.