I am looking for a way to inherit properties from multiple objects. This should be simple but I'm having a slow guy day! Here is what I want to do:
public class Base
{
public string BaseProperty1 { get; set; }
public string BaseProperty2 { get; set; }
}
public class Base2
{
public string Base2Property1 { get; set; }
public string Base2Property2 { get; set; }
}
public class Parent : Base, Base2 (this is not correct, of course)
{
public string ParentProperty1 { get; set; }
public string ParentProperty2 { get; set; }
}
The result is that Parent would have the properties of both Base and Base2. I am trying to avoid using an Interface to avoid extra coding to include the Interface properties manually.