Assuming we have a class InnerClass with attributes and getter/setter. We also have a class OuterClass containing the InnerClass.
e.g.
class InnerClass
{
It depends on how the inner class should work. The outer class might need to "own" the inner class, in which case:
public InnerClass InnerClass{
get{ return innerClass; }
set{ innerClass.CopyFrom(value); /* Pseudo method call */ }
}
By doing it this way, you prevent outside code from manipulating the instance unless explicitly through OuterClass..