コード例 #1
0
        public bool Equals(IHashtagEntity other)
        {
            if (Text != other.Text)
            {
                return false;
            }

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

            if (Indices.Length != other.Indices.Length)
            {
                return false;
            }

            for (int i = 0; i < Indices.Length; ++i)
            {
                if (Indices[i] != other.Indices[i])
                {
                    return false;
                }
            }

            return true;
        }
コード例 #2
0
ファイル: HashTagEntity.cs プロジェクト: onedeadear/tweetinvi
        public bool Equals(IHashtagEntity other)
        {
            if (Text != other.Text)
            {
                return(false);
            }

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

            if (Indices.Length != other.Indices.Length)
            {
                return(false);
            }

            for (int i = 0; i < Indices.Length; ++i)
            {
                if (Indices[i] != other.Indices[i])
                {
                    return(false);
                }
            }

            return(true);
        }
コード例 #3
0
        public bool Equals(IHashtagEntity other)
        {
            if (Text != other.Text)
            {
                return false;
            }

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

            return Indices.ContainsSameObjectsAs(other.Indices, true);
        }
コード例 #4
0
        public bool Equals(IHashtagEntity other)
        {
            if (Text != other.Text)
            {
                return(false);
            }

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

            return(Indices.ContainsSameObjectsAs(other.Indices, true));
        }