Compare base class part of sub class instance to another base class instance
- by Anders Abel
I have number of DTO classes in a system. They are organized in an inheritance hierarchy.
class Person
{
public int Id { get; set; }
public string FirstName { get; set; }
public string ListName { get; set; }
}
class PersonDetailed : Person
{
public string WorkPhone { get; set; }
public string HomePhone { get; set; }
public…