I have three classes which have many common properties, so I generated a base class from which they inherit:
public class CommonConfig { public TimeSpan Period1 { get; private set; } public TimeSpan Period2 { get; private set; } public TimeSpan Period3 { get; private set; } }; public class Config1 : CommonConfig { public long count1 {get; private set; } } public class Config2 : CommonConfig { public long count2 {get; private set; } } I am not sure that I want to make CommonConfig to be public. Is it possible to keep it private but still make something that allows usage like below.
Config1 c1; TimeSpan ts1 = c1.Period1;
CommonConfigaspublic