Microsoft.ManagementConsole.BaseCollection.InsertRange C# (CSharp) Method

InsertRange() protected method

protected InsertRange ( int index, object items ) : void
index int
items object
return void
        protected void InsertRange(int index, object[] items)
        {
            if (items == null)
            {
                throw new ArgumentNullException("items");
            }
            if (items.Length != 0)
            {
                foreach (object obj2 in items)
                {
                    this.OnValidate(obj2, true);
                }
                base.InnerList.InsertRange(index, items);
                try
                {
                    this.OnItemsAdded(index, items);
                }
                catch
                {
                    base.InnerList.RemoveRange(index, items.Length);
                    throw;
                }
            }
        }