示例#1
0
        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);
        }
示例#2
0
 protected bool Equals(BasicUserModel other)
 {
     return(string.Equals(Url, other.Url));
 }