Пример #1
0
        public override bool Equals(object obj)
        {
            ContextReference d1 = obj as ContextReference;

            if (d1 != null && Count == d1.Count)
            {
                for (int i = 0; i < Count; i++)
                {
                    if (this[i] != d1[i])
                    {
                        return(false);
                    }
                }
                return(true);
            }
            return(false);
        }
 public CollapsibleUndoContext(ContextReference contextReference, params object[] objects)
     : base(objects)
 {
     _contextReference = contextReference;
 }