======Метод List.Contains(T)====== Определяет, входит ли элемент в состав [[developers:references:system.collections.generic.list_1|List]] . * **Пространство имен:** [[developers:references:system.collections.generic|System.Collections.Generic]] * **Сборка:** mscorlib (в mscorlib.dll) =====Синтаксис===== public virtual bool Contains(T item) **Параметры** * //item// * Тип: T * Объект, который требуется найти в [[developers:references:system.collections.generic.list_1|List]] .Для ссылочных типов допускается значение null. **Возвращаемое значение** * Тип: [[developers:references:system.boolean|System.Boolean]] * Значение true, если элемент //item// найден в списке [[developers:references:system.collections.generic.list_1|List]] , в противном случае — значение false.