public override bool Equals(object obj) { if (obj == null) { return(false); } if (ReferenceEquals(this, obj)) { return(true); } if (obj.GetType() != typeof(BasicUserModel)) { return(false); } BasicUserModel other = (BasicUserModel)obj; return(Login == other.Login && Id == other.Id && AvatarUrl == other.AvatarUrl && GravatarId == other.GravatarId && Url == other.Url && Type == other.Type); }
protected bool Equals(BasicUserModel other) { return(string.Equals(Url, other.Url)); }