⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listcollection!1.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Utils
{
    using System;
    using System.Collections;
    using System.Collections.Generic;
    using System.Reflection;

    public class ListCollection<T> : ICollection<T>, IEnumerable<T>, IEnumerable
    {
        private List<T> List;

        public ListCollection()
        {
            this.List = new List<T>();
        }

        public void Add(T item)
        {
            this.List.Add(item);
        }

        public void Clear()
        {
            this.List.Clear();
        }

        public bool Contains(T item)
        {
            return this.List.Contains(item);
        }

        public void CopyTo(T[] array)
        {
            this.List.CopyTo(array);
        }

        public void CopyTo(T[] array, int index)
        {
            this.List.CopyTo(array, index);
        }

        public void CopyTo(int index, T[] array, int arrayIndex, int count)
        {
            this.List.CopyTo(index, array, arrayIndex, count);
        }

        public IEnumerator<T> GetEnumerator()
        {
            return this.GetEnumerator();
        }

        public int IndexOf(T item)
        {
            return this.List.IndexOf(item);
        }

        public void Insert(int index, T item)
        {
            this.List.Insert(index, item);
        }

        public bool Remove(T item)
        {
            return this.List.Remove(item);
        }

        public void RemoveAt(int index)
        {
            this.List.RemoveAt(index);
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return this.List.GetEnumerator();
        }

        public int Count
        {
            get
            {
                return this.List.get_Count();
            }
        }

        public bool IsReadOnly
        {
            get
            {
                return true;
            }
        }

        public T this[int index]
        {
            get
            {
                return this.List.get_Item(index);
            }
            set
            {
                this.List.set_Item(index, value);
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -