/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
src/OneScript.Core/Contexts/ICollectionContext.cs
26 строк
785 B
EvilBeaver
Большой рефакторинг коллекций и исправление ошибок
16 мар 2025, 23:39
16 мар 2025, 23:39
c8ef752
Код
Авторство
О чём код?
/*---------------------------------------------------------- This Source Code Form is subject to the terms of the Mozilla Public License, v.2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. ----------------------------------------------------------*/ using System.Collections.Generic; using OneScript.Execution; using ScriptEngine.Machine; namespace OneScript.Contexts { public interface ICollectionContext<out T> : IEnumerable<T> where T : IValue { int Count(IBslProcess process); IEnumerator<T> GetEnumerator(IBslProcess process) { // ReSharper disable once NotDisposedResourceIsReturned return GetEnumerator(); } } }