/
EvilBeaver
/
OneScript
Обзор
Документация
Войти
/
EvilBeaver
/
OneScript
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
src/ScriptEngine/Machine/CodeStat/CodeStatDataCollection.cs
81 строка
2 KB
Andrei Ovsiankin
Удалены неиспользуемые директивы по проекту
05 янв 2020, 23:29
05 янв 2020, 23:29
4be0088
Код
Авторство
О чём код?
/*---------------------------------------------------------- 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; using System.Collections.Generic; using System.Linq; namespace ScriptEngine.Machine { public class CodeStatDataCollection : ICollection<CodeStatData> { private List<CodeStatData> entryList = new List<CodeStatData>(); public int Count { get { return entryList.Count(); } } public CodeStatData this[int index] { get { return entryList[index]; } set { entryList[index] = value; } } public bool IsReadOnly { get { return false; } } public void Add(CodeStatData item) { entryList.Add(item); } public void Clear() { entryList.Clear(); } public bool Contains(CodeStatData item) { return entryList.Contains(item); } public void CopyTo(CodeStatData[] array, int arrayIndex) { entryList.CopyTo(array, arrayIndex); } public bool Remove(CodeStatData item) { return entryList.Remove(item); } IEnumerator IEnumerable.GetEnumerator() { return entryList.GetEnumerator(); } public IEnumerator<CodeStatData> GetEnumerator() { return entryList.GetEnumerator(); } } }