BitOrchestra.SequencerExpression.Equals C# (CSharp) Method

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool
        public override bool Equals(object obj)
        {
            if (this == obj)
                return true;

            SequencerExpression se = obj as SequencerExpression;
            if (se != null)
            {
                if (se.Items.Count != this.Items.Count)
                    return false;
                if (!se.Parameter.Equals(this.Parameter))
                    return false;
                for (int t = 0; t < this.Items.Count; t++)
                {
                    if (!se.Items[t].Equals(this.Items[t]))
                        return false;
                }
                return true;
            }

            return false;
        }