I have a simple inheritance situation as follows:
I expected to be able to set the properties in Class2 from Class1 but this is not the case. Is there a way to set access to the properties in Class 2 so they act like protected variables?
public abstract class Class2
{
public DateTime Added { get; private set; }
public int ID { get; private set; }
}
public class Class1 : Class2
{
public string ImageFilename { get; set; }
public string LinkText { get; set; }
}