How to diff Property Values of two objects using GetType GetValue?
问题 I have the following classes: public class Person { public String FirstName { set; get; } public String LastName { set; get; } public Role Role { set; get; } } public class Role { public String Description { set; get; } public Double Salary { set; get; } public Boolean HasBonus { set; get; } } I want to be able to automatically extract the property value diferences between Person1 and Person2, example as below: public static List<String> DiffObjectsProperties(T a, T b) { List<String>