コード例 #1
0
        public bool Equals(IUserMentionEntity other)
        {
            if (!Id.HasValue || !other.Id.HasValue)
            {
                return(false);
            }

            if (Id.Value != other.Id.Value)
            {
                return(false);
            }

            if (Indices == null || other.Indices == null)
            {
                return(Indices == other.Indices);
            }

            return(Indices.ContainsSameObjectsAs(other.Indices, true));
        }
コード例 #2
0
        public bool Equals(IUserMentionEntity other)
        {
            if (!Id.HasValue || !other.Id.HasValue)
            {
                return false;
            }

            if (Id.Value != other.Id.Value)
            {
                return false;
            }

            if (Indices == null || other.Indices == null)
            {
                return Indices == other.Indices;
            }

            return Indices.ContainsSameObjectsAs(other.Indices, true);
        }
コード例 #3
0
 public bool Equals(IUserMentionEntity other)
 {
     return(Id != null && Id == other.Id);
 }
コード例 #4
0
 public bool Equals(IUserMentionEntity other)
 {
     return Id != null && Id == other.Id;
 }