======Метод IEnumerable.GetEnumerator()====== Возвращает перечислитель, выполняющий перебор элементов коллекции. * **Пространство имен:** [[developers:references:system.collections.generic|System.Collections.Generic]] * **Сборка:** mscorlib (в mscorlib.dll) =====Синтаксис===== public virtual IEnumerator GetEnumerator() **Возвращаемое значение** * Тип: [[developers:references:system.collections.generic.ienumerator_1|System.Collections.Generic.IEnumerator]] * Интерфейс [[developers:references:system.collections.generic.ienumerator_1|IEnumerator]] , который может использоваться для перебора элементов коллекции.