public bool DeepEquals(AuthorizationRole other) { if(other == null) return false; if (Permissions.Count != other.Permissions.Count) return false; for (int i = 0; i < Permissions.Count; i++) { if (Permissions[i].DeepEquals(other.Permissions[i]) == false) { return false; } } return true; }
public bool DeepEquals(AuthorizationRole other) { if (other == null) { return(false); } if (Permissions.Count != other.Permissions.Count) { return(false); } for (int i = 0; i < Permissions.Count; i++) { if (Permissions[i].DeepEquals(other.Permissions[i]) == false) { return(false); } } return(true); }