======Метод List.InsertRange(Int32, IEnumerable)====== Вставляет элементы коллекции в список [[developers:references:system.collections.generic.list_1|List]] в позиции с указанным индексом. * **Пространство имен:** [[developers:references:system.collections.generic|System.Collections.Generic]] * **Сборка:** mscorlib (в mscorlib.dll) =====Синтаксис===== public void InsertRange(int index, IEnumerable collection) **Параметры** * //index// * Тип: [[developers:references:system.int32|System.Int32]] * Отсчитываемый от нуля индекс места вставки новых элементов. * //collection// * Тип: [[developers:references:system.collections.generic.ienumerable_1|System.Collections.Generic.IEnumerable]] * Коллекция, элементы которой следует вставить в список [[developers:references:system.collections.generic.list_1|List]] .Коллекция не может быть задана значением null, но может содержать элементы null, если тип //T// является ссылочным типом.