Example #1
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            var c = (Note)obj;

            return(startPosition.Equals(c.startPosition) &&
                   type == c.type);
        }
Example #2
0
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            var c = (Note)obj;

            return(position.Equals(c.position) &&
                   type == c.type &&
                   next.Equals(c.next) &&
                   prev.Equals(c.prev));
        }