public override bool Equals(object obj) { var other = obj as IdentityResourceModel; if (other == null) { return(false); } var result = UserClaims.SafeListEquals(other.UserClaims) && Description.SafeEquals(other.Description) && DisplayName.SafeEquals(other.DisplayName) && Enabled.SafeEquals(other.Enabled) && Emphasize.SafeEquals(other.Emphasize) && Required.SafeEquals(other.Required) && ShowInDiscoveryDocument.SafeEquals(other.ShowInDiscoveryDocument); return(result); }