c# - Diferrence between two lists with nested values -
i have variables of particular type, classes them : public class user { public int? id { get; set; } public string password { get; set; } public string firstname { get; set; } public string lastname { get; set; } public string email { get; set; } public list<accessiblesite> sites { get; set; } } public class accessiblesite { public int id { get; set; } public string name { get; set; } public list<role> roles { get; set; } public bool ischecked { get; set; } } public class role { public int id { get; set; } public string name { get; set; } public bool ischecked { get; set; } public string userfriendlyname { get; set; } } a user can have many accessiblesite under him , each site has list of role associated it. there 2 objects of user type. need find difference between 2 lists. so far code have written comparing non list objects correctly. static class extentions { public static list<variance...