Ejemplo n.º 1
0
        public void Merge(IHeap <TKey, TValue> other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            var casted = other as THeap;

            if (casted == null)
            {
                throw new ArgumentException(FormatTypeMismatchMessage(typeof(THeap), other.GetType()));
            }

            this.Merge(casted);
        }