So, in my "never learn it at university/school" way, I've come up against a C# problem that is probably incredibly simple.
Basically, I've started doing things properly with some objects I'm making, thus:
csharp code:
public class AffiliateConstants
{
private string m_AffiliateName;
public string AffiliateName
{
get { return m_AffiliateName; }
}
}
So far so good. But I want to make sort of sub-object, accessible like AffiliateConstant.SubObject that'd have another load of properly created properties that are settable internally by the
child and parent but not outside of them.
If I make a separate class then I can't change the subobject's values (unless I do so on the constructor) because, of course, they're private.