Ejemplo n.º 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));
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public bool Equals(IUserMentionEntity other)
 {
     return(Id != null && Id == other.Id);
 }
 public bool Equals(IUserMentionEntity other)
 {
     return Id != null && Id == other.Id;
 }