List方法

// Decompiled with JetBrains decompiler
// Type: System.Collections.Generic.List`1
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// MVID: 05D3C3EF-C0FC-47FC-86AA-85E3AEE95C4B
// Assembly location: C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll


using System;
using System.Collections;
using System.Collections.ObjectModel;
using System.Diagnostics;


namespace System.Collections.Generic
{
  /// <summary>
  /// 表示可通过索引访问的对象的强类型列表。提供用于对列表进行搜索、排序和操作的方法。若要浏览此类型的.NET Framework 源代码,请参阅 Reference Source。
  /// </summary>
  /// <typeparam name="T">列表中元素的类型。</typeparam><filterpriority>1</filterpriority>
  [DebuggerTypeProxy(typeof (Mscorlib_CollectionDebugView<>))]
  [DebuggerDisplay("Count = {Count}")]
  [__DynamicallyInvokable]
  [Serializable]
  public class List<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>
  {
    /// <summary>
    /// 初始化 <see cref="T:System.Collections.Generic.List`1"/> 类的新实例,该实例为空并且具有默认初始容量。
    /// </summary>
    [__DynamicallyInvokable]
    public List();
    /// <summary>
    /// 初始化 <see cref="T:System.Collections.Generic.List`1"/> 类的新实例,该实例为空并且具有指定的初始容量。
    /// </summary>
    /// <param name="capacity">新列表最初可以存储的元素数。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="capacity"/> 小于 0。</exception>
    [__DynamicallyInvokable]
    public List(int capacity);
    /// <summary>
    /// 初始化 <see cref="T:System.Collections.Generic.List`1"/> 类的新实例,该实例包含从指定集合复制的元素并且具有足够的容量来容纳所复制的元素。
    /// </summary>
    /// <param name="collection">一个集合,其元素被复制到新列表中。</param><exception cref="T:System.ArgumentNullException"><paramref name="collection"/> 为 null。</exception>
    [__DynamicallyInvokable]
    public List(IEnumerable<T> collection);
    /// <summary>
    /// 将对象添加到 <see cref="T:System.Collections.Generic.List`1"/> 的结尾处。
    /// </summary>
    /// <param name="item">要添加到 <see cref="T:System.Collections.Generic.List`1"/> 末尾的对象。对于引用类型,该值可以为 null。</param>
    [__DynamicallyInvokable]
    public void Add(T item);
    /// <summary>
    /// 将某项添加到 <see cref="T:System.Collections.IList"/> 中。
    /// </summary>
    /// 
    /// <returns>
    /// 新元素的插入位置。
    /// </returns>
    /// <param name="item">要添加到 <see cref="T:System.Object"/> 的 <see cref="T:System.Collections.IList"/>。</param><exception cref="T:System.ArgumentException"><paramref name="item"/> 为类型不能分配给 <see cref="T:System.Collections.IList"/>。</exception>
    [__DynamicallyInvokable]
    int IList.Add(object item);
    /// <summary>
    /// 将指定集合的元素添加到 <see cref="T:System.Collections.Generic.List`1"/> 的末尾。
    /// </summary>
    /// <param name="collection">应将其元素添加到 <see cref="T:System.Collections.Generic.List`1"/> 的末尾的集合。集合自身不能为 null,但它可以包含为 null 的元素(如果类型 <paramref name="T"/> 为引用类型)。</param><exception cref="T:System.ArgumentNullException"><paramref name="collection"/> 为 null。</exception>
    [__DynamicallyInvokable]
    public void AddRange(IEnumerable<T> collection);
    /// <summary>
    /// 返回当前集合的只读 <see cref="T:System.Collections.Generic.IList`1"/> 包装器。
    /// </summary>
    /// 
    /// <returns>
    /// 一个 <see cref="T:System.Collections.ObjectModel.ReadOnlyCollection`1"/>,作为围绕当前 <see cref="T:System.Collections.Generic.List`1"/> 的只读包装。
    /// </returns>
    [__DynamicallyInvokable]
    public ReadOnlyCollection<T> AsReadOnly();
    /// <summary>
    /// 使用指定的比较器在已排序 <see cref="T:System.Collections.Generic.List`1"/> 的某个元素范围中搜索元素,并返回该元素从零开始的索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果找到 <paramref name="item"/>,则为已排序的 <see cref="T:System.Collections.Generic.List`1"/> 中 <paramref name="item"/> 的从零开始的索引;否则为一个负数,该负数是大于 <paramref name="item"/> 的下一个元素的索引的按位求补。如果没有更大的元素,则为 <see cref="P:System.Collections.Generic.List`1.Count"/> 的按位求补。
    /// </returns>
    /// <param name="index">要搜索范围的从零开始的起始索引。</param><param name="count">要搜索的范围的长度。</param><param name="item">要定位的对象。对于引用类型,该值可以为 null。</param><param name="comparer">比较元素时要使用的 <see cref="T:System.Collections.Generic.IComparer`1"/> 实现,若要使用默认比较器 <see cref="P:System.Collections.Generic.Comparer`1.Default"/>,则为 null。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 小于 0。- 或 -<paramref name="count"/> 小于 0。</exception><exception cref="T:System.ArgumentException"><paramref name="index"/> 和 <paramref name="count"/> 不表示中的有效范围 <see cref="T:System.Collections.Generic.List`1"/>。</exception><exception cref="T:System.InvalidOperationException"><paramref name="comparer"/> 是 null, ,和默认比较器 <see cref="P:System.Collections.Generic.Comparer`1.Default"/> 找不到的一种实现 <see cref="T:System.IComparable`1"/> 泛型接口或 <see cref="T:System.IComparable"/> 类型的接口 <paramref name="T"/>。</exception>
    [__DynamicallyInvokable]
    public int BinarySearch(int index, int count, T item, IComparer<T> comparer);
    /// <summary>
    /// 使用默认的比较器在整个已排序的 <see cref="T:System.Collections.Generic.List`1"/> 中搜索元素,并返回该元素从零开始的索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果找到 <paramref name="item"/>,则为已排序的 <see cref="T:System.Collections.Generic.List`1"/> 中 <paramref name="item"/> 的从零开始的索引;否则为一个负数,该负数是大于 <paramref name="item"/> 的下一个元素的索引的按位求补。如果没有更大的元素,则为 <see cref="P:System.Collections.Generic.List`1.Count"/> 的按位求补。
    /// </returns>
    /// <param name="item">要定位的对象。对于引用类型,该值可以为 null。</param><exception cref="T:System.InvalidOperationException">默认比较器 <see cref="P:System.Collections.Generic.Comparer`1.Default"/> 找不到的一种实现 <see cref="T:System.IComparable`1"/> 泛型接口或 <see cref="T:System.IComparable"/> 类型的接口 <paramref name="T"/>。</exception>
    [__DynamicallyInvokable]
    public int BinarySearch(T item);
    /// <summary>
    /// 使用指定的比较器在整个已排序的 <see cref="T:System.Collections.Generic.List`1"/> 中搜索元素,并返回该元素从零开始的索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果找到 <paramref name="item"/>,则为已排序的 <see cref="T:System.Collections.Generic.List`1"/> 中 <paramref name="item"/> 的从零开始的索引;否则为一个负数,该负数是大于 <paramref name="item"/> 的下一个元素的索引的按位求补。如果没有更大的元素,则为 <see cref="P:System.Collections.Generic.List`1.Count"/> 的按位求补。
    /// </returns>
    /// <param name="item">要定位的对象。对于引用类型,该值可以为 null。</param><param name="comparer">比较元素时要使用的 <see cref="T:System.Collections.Generic.IComparer`1"/> 实现。- 或 -如果使用默认比较器 <see cref="P:System.Collections.Generic.Comparer`1.Default"/>,则为 null。</param><exception cref="T:System.InvalidOperationException"><paramref name="comparer"/> 是 null, ,和默认比较器 <see cref="P:System.Collections.Generic.Comparer`1.Default"/> 找不到的一种实现 <see cref="T:System.IComparable`1"/> 泛型接口或 <see cref="T:System.IComparable"/> 类型的接口 <paramref name="T"/>。</exception>
    [__DynamicallyInvokable]
    public int BinarySearch(T item, IComparer<T> comparer);
    /// <summary>
    /// 从 <see cref="T:System.Collections.Generic.List`1"/> 中移除所有元素。
    /// </summary>
    [__DynamicallyInvokable]
    public void Clear();
    /// <summary>
    /// 确定某元素是否在 <see cref="T:System.Collections.Generic.List`1"/> 中。
    /// </summary>
    /// 
    /// <returns>
    /// 如果在 true 中找到 <paramref name="item"/>,则为 <see cref="T:System.Collections.Generic.List`1"/>;否则为 false。
    /// </returns>
    /// <param name="item">要在 <see cref="T:System.Collections.Generic.List`1"/> 中定位的对象。对于引用类型,该值可以为 null。</param>
    [__DynamicallyInvokable]
    public bool Contains(T item);
    /// <summary>
    /// 确定 <see cref="T:System.Collections.IList"/> 是否包含特定值。
    /// </summary>
    /// 
    /// <returns>
    /// 如果在 true 中找到 <paramref name="item"/>,则为 <see cref="T:System.Collections.IList"/>;否则为 false。
    /// </returns>
    /// <param name="item">要在 <see cref="T:System.Object"/> 中定位的 <see cref="T:System.Collections.IList"/>。</param>
    [__DynamicallyInvokable]
    bool IList.Contains(object item);
    /// <summary>
    /// 将当前 <see cref="T:System.Collections.Generic.List`1"/> 中的元素转换为另一种类型,并返回包含已转换元素的列表。
    /// </summary>
    /// 
    /// <returns>
    /// 目标类型的 <see cref="T:System.Collections.Generic.List`1"/>,包含当前 <see cref="T:System.Collections.Generic.List`1"/> 中转换后的元素。
    /// </returns>
    /// <param name="converter">一个 <see cref="T:System.Converter`2"/> 委托,可将每个元素从一种类型转换为另一种类型。</param><typeparam name="TOutput">目标数组元素的类型。</typeparam><exception cref="T:System.ArgumentNullException"><paramref name="converter"/> 为 null。</exception>
    public List<TOutput> ConvertAll<TOutput>(Converter<T, TOutput> converter);
    /// <summary>
    /// 从目标数组的开头开始,将整个 <see cref="T:System.Collections.Generic.List`1"/> 复制到兼容的一维数组。
    /// </summary>
    /// <param name="array">一维 <see cref="T:System.Array"/>,它是从 <see cref="T:System.Collections.Generic.List`1"/> 复制的元素的目标。<see cref="T:System.Array"/> 必须具有从零开始的索引。</param><exception cref="T:System.ArgumentNullException"><paramref name="array"/> 为 null。</exception><exception cref="T:System.ArgumentException">在源中的元素数目 <see cref="T:System.Collections.Generic.List`1"/> 大于元素的数目,目标 <paramref name="array"/> 可以包含。</exception>
    [__DynamicallyInvokable]
    public void CopyTo(T[] array);
    /// <summary>
    /// 从特定的 <see cref="T:System.Collections.ICollection"/> 索引处开始,将 <see cref="T:System.Array"/> 的元素复制到一个 <see cref="T:System.Array"/> 中。
    /// </summary>
    /// <param name="array">一维 <see cref="T:System.Array"/>,它是从 <see cref="T:System.Collections.ICollection"/> 复制的元素的目标。<see cref="T:System.Array"/> 必须具有从零开始的索引。</param><param name="arrayIndex"><paramref name="array"/> 中从零开始的索引,从此处开始复制。</param><exception cref="T:System.ArgumentNullException"><paramref name="array"/> 为 null。</exception><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="arrayIndex"/> 小于 0。</exception><exception cref="T:System.ArgumentException"><paramref name="array"/> 是多维的。- 或 -<paramref name="array"/> 不具有从零开始的索引。- 或 -在源中的元素数目 <see cref="T:System.Collections.ICollection"/> 大于从可用空间 <paramref name="arrayIndex"/> 到目标的末尾 <paramref name="array"/>。- 或 -源的类型 <see cref="T:System.Collections.ICollection"/> 不能自动转换为目标类型 <paramref name="array"/>。</exception>
    [__DynamicallyInvokable]
    void ICollection.CopyTo(Array array, int arrayIndex);
    /// <summary>
    /// 从目标数组的指定索引处开始,将元素的范围从 <see cref="T:System.Collections.Generic.List`1"/> 复制到兼容的一维数组。
    /// </summary>
    /// <param name="index">复制即从源 <see cref="T:System.Collections.Generic.List`1"/> 中从零开始的索引开始。</param><param name="array">一维 <see cref="T:System.Array"/>,它是从 <see cref="T:System.Collections.Generic.List`1"/> 复制的元素的目标。<see cref="T:System.Array"/> 必须具有从零开始的索引。</param><param name="arrayIndex"><paramref name="array"/> 中从零开始的索引,从此处开始复制。</param><param name="count">要复制的元素数。</param><exception cref="T:System.ArgumentNullException"><paramref name="array"/> 为 null。</exception><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 小于 0。- 或 -<paramref name="arrayIndex"/> 小于 0。- 或 -<paramref name="count"/> 小于 0。</exception><exception cref="T:System.ArgumentException"><paramref name="index"/> 等于或大于 <see cref="P:System.Collections.Generic.List`1.Count"/> 源的 <see cref="T:System.Collections.Generic.List`1"/>。- 或 -中的元素数 <paramref name="index"/> 到源末尾 <see cref="T:System.Collections.Generic.List`1"/> 大于从可用空间 <paramref name="arrayIndex"/> 到目标的末尾 <paramref name="array"/>。</exception>
    [__DynamicallyInvokable]
    public void CopyTo(int index, T[] array, int arrayIndex, int count);
    /// <summary>
    /// 从目标数组的指定索引处开始,将整个 <see cref="T:System.Collections.Generic.List`1"/> 复制到兼容的一维数组。
    /// </summary>
    /// <param name="array">一维 <see cref="T:System.Array"/>,它是从 <see cref="T:System.Collections.Generic.List`1"/> 复制的元素的目标。<see cref="T:System.Array"/> 必须具有从零开始的索引。</param><param name="arrayIndex"><paramref name="array"/> 中从零开始的索引,从此处开始复制。</param><exception cref="T:System.ArgumentNullException"><paramref name="array"/> 为 null。</exception><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="arrayIndex"/> 小于 0。</exception><exception cref="T:System.ArgumentException">在源中的元素数目 <see cref="T:System.Collections.Generic.List`1"/> 大于从可用空间 <paramref name="arrayIndex"/> 到目标的末尾 <paramref name="array"/>。</exception>
    [__DynamicallyInvokable]
    public void CopyTo(T[] array, int arrayIndex);
    /// <summary>
    /// 确定 <see cref="T:System.Collections.Generic.List`1"/> 是否包含与指定谓词定义的条件匹配的元素。
    /// </summary>
    /// 
    /// <returns>
    /// 如果 <see cref="T:System.Collections.Generic.List`1"/> 包含一个或多个元素与指定谓词定义的条件匹配,则为 true;否则为 false。
    /// </returns>
    /// <param name="match"><see cref="T:System.Predicate`1"/> 委托,用于定义要搜索的元素应满足的条件。</param><exception cref="T:System.ArgumentNullException"><paramref name="match"/> 为 null。</exception>
    [__DynamicallyInvokable]
    public bool Exists(Predicate<T> match);
    /// <summary>
    /// 搜索与指定谓词所定义的条件相匹配的元素,并返回整个 <see cref="T:System.Collections.Generic.List`1"/> 中的第一个匹配元素。
    /// </summary>
    /// 
    /// <returns>
    /// 如果找到与指定谓词定义的条件匹配的第一个元素,则为该元素;否则为类型 <paramref name="T"/> 的默认值。
    /// </returns>
    /// <param name="match"><see cref="T:System.Predicate`1"/> 委托,用于定义要搜索的元素的条件。</param><exception cref="T:System.ArgumentNullException"><paramref name="match"/> 为 null。</exception>
    [__DynamicallyInvokable]
    public T Find(Predicate<T> match);
    /// <summary>
    /// 检索与指定谓词定义的条件匹配的所有元素。
    /// </summary>
    /// 
    /// <returns>
    /// 如果找到一个 <see cref="T:System.Collections.Generic.List`1"/>,其中所有元素均与指定谓词定义的条件匹配,则为该数组;否则为一个空 <see cref="T:System.Collections.Generic.List`1"/>。
    /// </returns>
    /// <param name="match"><see cref="T:System.Predicate`1"/> 委托,用于定义要搜索的元素应满足的条件。</param><exception cref="T:System.ArgumentNullException"><paramref name="match"/> 为 null。</exception>
    [__DynamicallyInvokable]
    public List<T> FindAll(Predicate<T> match);
    /// <summary>
    /// 搜索与指定谓词所定义的条件相匹配的元素,并返回整个 <see cref="T:System.Collections.Generic.List`1"/> 中第一个匹配元素的从零开始的索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果找到与 <paramref name="match"/> 定义的条件相匹配的第一个元素,则为该元素的从零开始的索引;否则为 -1。
    /// </returns>
    /// <param name="match"><see cref="T:System.Predicate`1"/> 委托,用于定义要搜索的元素的条件。</param><exception cref="T:System.ArgumentNullException"><paramref name="match"/> 为 null。</exception>
    [__DynamicallyInvokable]
    public int FindIndex(Predicate<T> match);
    /// <summary>
    /// 搜索与指定谓词所定义的条件相匹配的元素,并返回 <see cref="T:System.Collections.Generic.List`1"/> 中从指定索引到最后一个元素的元素范围内第一个匹配项的从零开始的索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果找到与 <paramref name="match"/> 定义的条件相匹配的第一个元素,则为该元素的从零开始的索引;否则为 -1。
    /// </returns>
    /// <param name="startIndex">从零开始的搜索的起始索引。</param><param name="match"><see cref="T:System.Predicate`1"/> 委托,用于定义要搜索的元素的条件。</param><exception cref="T:System.ArgumentNullException"><paramref name="match"/> 为 null。</exception><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="startIndex"/> 超出的有效索引范围 <see cref="T:System.Collections.Generic.List`1"/>。</exception>
    [__DynamicallyInvokable]
    public int FindIndex(int startIndex, Predicate<T> match);
    /// <summary>
    /// 搜索与指定谓词所定义的条件相匹配的一个元素,并返回 <see cref="T:System.Collections.Generic.List`1"/> 中从指定的索引开始、包含指定元素个数的元素范围内第一个匹配项的从零开始的索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果找到与 <paramref name="match"/> 定义的条件相匹配的第一个元素,则为该元素的从零开始的索引;否则为 -1。
    /// </returns>
    /// <param name="startIndex">从零开始的搜索的起始索引。</param><param name="count">要搜索的部分中的元素数。</param><param name="match"><see cref="T:System.Predicate`1"/> 委托,用于定义要搜索的元素的条件。</param><exception cref="T:System.ArgumentNullException"><paramref name="match"/> 为 null。</exception><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="startIndex"/> 超出的有效索引范围 <see cref="T:System.Collections.Generic.List`1"/>。- 或 -<paramref name="count"/> 小于 0。- 或 -<paramref name="startIndex"/> 和 <paramref name="count"/> 未指定中的有效部分 <see cref="T:System.Collections.Generic.List`1"/>。</exception>
    [__DynamicallyInvokable]
    public int FindIndex(int startIndex, int count, Predicate<T> match);
    /// <summary>
    /// 搜索与指定谓词所定义的条件相匹配的元素,并返回整个 <see cref="T:System.Collections.Generic.List`1"/> 中的最后一个匹配元素。
    /// </summary>
    /// 
    /// <returns>
    /// 如果找到,则为与指定谓词所定义的条件相匹配的最后一个元素;否则为类型 <paramref name="T"/> 的默认值。
    /// </returns>
    /// <param name="match"><see cref="T:System.Predicate`1"/> 委托,用于定义要搜索的元素的条件。</param><exception cref="T:System.ArgumentNullException"><paramref name="match"/> 为 null。</exception>
    [__DynamicallyInvokable]
    public T FindLast(Predicate<T> match);
    /// <summary>
    /// 搜索与指定谓词所定义的条件相匹配的元素,并返回整个 <see cref="T:System.Collections.Generic.List`1"/> 中最后一个匹配元素的从零开始的索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果找到与 <paramref name="match"/> 定义的条件相匹配的最后一个元素,则为该元素的从零开始的索引;否则为 -1。
    /// </returns>
    /// <param name="match"><see cref="T:System.Predicate`1"/> 委托,用于定义要搜索的元素的条件。</param><exception cref="T:System.ArgumentNullException"><paramref name="match"/> 为 null。</exception>
    [__DynamicallyInvokable]
    public int FindLastIndex(Predicate<T> match);
    /// <summary>
    /// 搜索与由指定谓词定义的条件相匹配的元素,并返回 <see cref="T:System.Collections.Generic.List`1"/> 中从第一个元素到指定索引的元素范围内最后一个匹配项的从零开始的索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果找到与 <paramref name="match"/> 定义的条件相匹配的最后一个元素,则为该元素的从零开始的索引;否则为 -1。
    /// </returns>
    /// <param name="startIndex">向后搜索的从零开始的起始索引。</param><param name="match"><see cref="T:System.Predicate`1"/> 委托,用于定义要搜索的元素的条件。</param><exception cref="T:System.ArgumentNullException"><paramref name="match"/> 为 null。</exception><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="startIndex"/> 超出的有效索引范围 <see cref="T:System.Collections.Generic.List`1"/>。</exception>
    [__DynamicallyInvokable]
    public int FindLastIndex(int startIndex, Predicate<T> match);
    /// <summary>
    /// 搜索与指定谓词所定义的条件相匹配的元素,并返回 <see cref="T:System.Collections.Generic.List`1"/> 中包含指定元素个数、到指定索引结束的元素范围内最后一个匹配项的从零开始的索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果找到与 <paramref name="match"/> 定义的条件相匹配的最后一个元素,则为该元素的从零开始的索引;否则为 -1。
    /// </returns>
    /// <param name="startIndex">向后搜索的从零开始的起始索引。</param><param name="count">要搜索的部分中的元素数。</param><param name="match"><see cref="T:System.Predicate`1"/> 委托,用于定义要搜索的元素的条件。</param><exception cref="T:System.ArgumentNullException"><paramref name="match"/> 为 null。</exception><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="startIndex"/> 超出的有效索引范围 <see cref="T:System.Collections.Generic.List`1"/>。- 或 -<paramref name="count"/> 小于 0。- 或 -<paramref name="startIndex"/> 和 <paramref name="count"/> 未指定中的有效部分 <see cref="T:System.Collections.Generic.List`1"/>。</exception>
    [__DynamicallyInvokable]
    public int FindLastIndex(int startIndex, int count, Predicate<T> match);
    /// <summary>
    /// 对 <see cref="T:System.Collections.Generic.List`1"/> 的每个元素执行指定操作。
    /// </summary>
    /// <param name="action">要对 <see cref="T:System.Collections.Generic.List`1"/> 的每个元素执行的 <see cref="T:System.Action`1"/> 委托。</param><exception cref="T:System.ArgumentNullException"><paramref name="action"/> 为 null。</exception><exception cref="T:System.InvalidOperationException">在集合中的元素已被修改。从.NET Framework 4.5 开始,将引发此异常。</exception>
    [__DynamicallyInvokable]
    public void ForEach(Action<T> action);
    /// <summary>
    /// 返回循环访问 <see cref="T:System.Collections.Generic.List`1"/> 的枚举数。
    /// </summary>
    /// 
    /// <returns>
    /// 用于 <see cref="T:System.Collections.Generic.List`1.Enumerator"/> 的 <see cref="T:System.Collections.Generic.List`1"/>。
    /// </returns>
    [__DynamicallyInvokable]
    public List<T>.Enumerator GetEnumerator();
    /// <summary>
    /// 返回循环访问集合的枚举数。
    /// </summary>
    /// 
    /// <returns>
    /// 可用于循环访问集合的 <see cref="T:System.Collections.Generic.IEnumerator`1"/>。
    /// </returns>
    [__DynamicallyInvokable]
    IEnumerator<T> IEnumerable<T>.GetEnumerator();
    /// <summary>
    /// 返回循环访问集合的枚举数。
    /// </summary>
    /// 
    /// <returns>
    /// 可用于循环访问集合的 <see cref="T:System.Collections.IEnumerator"/>。
    /// </returns>
    [__DynamicallyInvokable]
    IEnumerator IEnumerable.GetEnumerator();
    /// <summary>
    /// 在源 <see cref="T:System.Collections.Generic.List`1"/> 中创建元素范围的浅表复制。
    /// </summary>
    /// 
    /// <returns>
    /// 源 <see cref="T:System.Collections.Generic.List`1"/> 中的元素范围的浅表副本复制。
    /// </returns>
    /// <param name="index">范围开始处的从零开始的 <see cref="T:System.Collections.Generic.List`1"/> 索引。</param><param name="count">范围中的元素数。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 小于 0。- 或 -<paramref name="count"/> 小于 0。</exception><exception cref="T:System.ArgumentException"><paramref name="index"/> 和 <paramref name="count"/> 不表示有效范围中的元素为 <see cref="T:System.Collections.Generic.List`1"/>。</exception>
    [__DynamicallyInvokable]
    public List<T> GetRange(int index, int count);
    /// <summary>
    /// 搜索指定的对象,并返回整个 <see cref="T:System.Collections.Generic.List`1"/> 中第一个匹配项的从零开始的索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果在整个 <paramref name="item"/> 中找到 <see cref="T:System.Collections.Generic.List`1"/> 的匹配项,则为第一个匹配项的从零开始的索引;否则为 -1。
    /// </returns>
    /// <param name="item">要在 <see cref="T:System.Collections.Generic.List`1"/> 中定位的对象。对于引用类型,该值可以为 null。</param>
    [__DynamicallyInvokable]
    public int IndexOf(T item);
    /// <summary>
    /// 确定 <see cref="T:System.Collections.IList"/> 中特定项的索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果在列表中找到,则为 <paramref name="item"/> 的索引;否则为 -1。
    /// </returns>
    /// <param name="item">要在 <see cref="T:System.Collections.IList"/> 中定位的对象。</param><exception cref="T:System.ArgumentException"><paramref name="item"/> 为类型不能分配给 <see cref="T:System.Collections.IList"/>。</exception>
    [__DynamicallyInvokable]
    int IList.IndexOf(object item);
    /// <summary>
    /// 搜索指定对象并返回 <see cref="T:System.Collections.Generic.List`1"/> 中从指定索引到最后一个元素这部分元素中第一个匹配项的从零开始索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果在 <see cref="T:System.Collections.Generic.List`1"/> 中从 <paramref name="index"/> 到最后一个元素的元素范围内找到 <paramref name="item"/> 的第一个匹配项,则为该项的从零开始的索引;否则为 -1。
    /// </returns>
    /// <param name="item">要在 <see cref="T:System.Collections.Generic.List`1"/> 中定位的对象。对于引用类型,该值可以为 null。</param><param name="index">从零开始的搜索的起始索引。空列表中 0(零)为有效值。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 超出的有效索引范围 <see cref="T:System.Collections.Generic.List`1"/>。</exception>
    [__DynamicallyInvokable]
    public int IndexOf(T item, int index);
    /// <summary>
    /// 搜索指定对象并返回 <see cref="T:System.Collections.Generic.List`1"/> 中从指定索引开始并包含指定元素数的这部分元素中第一个匹配项的从零开始索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果在 <see cref="T:System.Collections.Generic.List`1"/> 中从 <paramref name="index"/> 开始并包含 <paramref name="count"/> 个元素的元素范围内找到 <paramref name="item"/> 的第一个匹配项,则为该项的从零开始的索引;否则为 -1。
    /// </returns>
    /// <param name="item">要在 <see cref="T:System.Collections.Generic.List`1"/> 中定位的对象。对于引用类型,该值可以为 null。</param><param name="index">从零开始的搜索的起始索引。空列表中 0(零)为有效值。</param><param name="count">要搜索的部分中的元素数。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 超出的有效索引范围 <see cref="T:System.Collections.Generic.List`1"/>。- 或 -<paramref name="count"/> 小于 0。- 或 -<paramref name="index"/> 和 <paramref name="count"/> 未指定中的有效部分 <see cref="T:System.Collections.Generic.List`1"/>。</exception>
    [__DynamicallyInvokable]
    public int IndexOf(T item, int index, int count);
    /// <summary>
    /// 将元素插入 <see cref="T:System.Collections.Generic.List`1"/> 的指定索引处。
    /// </summary>
    /// <param name="index">应插入 <paramref name="item"/> 的从零开始的索引。</param><param name="item">要插入的对象。对于引用类型,该值可以为 null。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 小于 0。- 或 -<paramref name="index"/> 大于 <see cref="P:System.Collections.Generic.List`1.Count"/>。</exception>
    [__DynamicallyInvokable]
    public void Insert(int index, T item);
    /// <summary>
    /// 在 <see cref="T:System.Collections.IList"/> 中的指定索引处插入一个项。
    /// </summary>
    /// <param name="index">应插入 <paramref name="item"/> 的从零开始的索引。</param><param name="item">要插入到 <see cref="T:System.Collections.IList"/> 中的对象。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 不是 <see cref="T:System.Collections.IList"/> 中的有效索引。</exception><exception cref="T:System.ArgumentException"><paramref name="item"/> 为类型不能分配给 <see cref="T:System.Collections.IList"/>。</exception>
    [__DynamicallyInvokable]
    void IList.Insert(int index, object item);
    /// <summary>
    /// 将集合中的元素插入 <see cref="T:System.Collections.Generic.List`1"/> 的指定索引处。
    /// </summary>
    /// <param name="index">应在此处插入新元素的从零开始的索引。</param><param name="collection">应将其元素插入到 <see cref="T:System.Collections.Generic.List`1"/> 中的集合。集合自身不能为 null,但它可以包含为 null 的元素(如果类型 <paramref name="T"/> 为引用类型)。</param><exception cref="T:System.ArgumentNullException"><paramref name="collection"/> 为 null。</exception><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 小于 0。- 或 -<paramref name="index"/> 大于 <see cref="P:System.Collections.Generic.List`1.Count"/>。</exception>
    [__DynamicallyInvokable]
    public void InsertRange(int index, IEnumerable<T> collection);
    /// <summary>
    /// 搜索指定对象并返回整个 <see cref="T:System.Collections.Generic.List`1"/> 中最后一个匹配项的从零开始索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果在整个 <see cref="T:System.Collections.Generic.List`1"/> 中找到 <paramref name="item"/> 的最后一个匹配项,则为该项的从零开始的索引;否则为 -1。
    /// </returns>
    /// <param name="item">要在 <see cref="T:System.Collections.Generic.List`1"/> 中定位的对象。对于引用类型,该值可以为 null。</param>
    [__DynamicallyInvokable]
    public int LastIndexOf(T item);
    /// <summary>
    /// 搜索指定对象并返回 <see cref="T:System.Collections.Generic.List`1"/> 中从第一个元素到指定索引这部分元素中最后一个匹配项的从零开始的索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果在 <see cref="T:System.Collections.Generic.List`1"/> 中从第一个元素到 <paramref name="index"/> 的元素范围内找到 <paramref name="item"/> 的最后一个匹配项,则为该项的从零开始的索引;否则为 -1。
    /// </returns>
    /// <param name="item">要在 <see cref="T:System.Collections.Generic.List`1"/> 中定位的对象。对于引用类型,该值可以为 null。</param><param name="index">向后搜索的从零开始的起始索引。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 超出的有效索引范围 <see cref="T:System.Collections.Generic.List`1"/>。</exception>
    [__DynamicallyInvokable]
    public int LastIndexOf(T item, int index);
    /// <summary>
    /// 搜索指定对象并返回 <see cref="T:System.Collections.Generic.List`1"/> 中到指定索引为止包含指定元素数的这部分元素中最后一个匹配项的从零开始索引。
    /// </summary>
    /// 
    /// <returns>
    /// 如果找到包含 <paramref name="count"/> 个元素、到 <paramref name="index"/> 为止的索引,则为 <see cref="T:System.Collections.Generic.List`1"/> 中元素范围内 <paramref name="item"/> 的最后一个匹配项的从零开始的索引;否则为 -1。
    /// </returns>
    /// <param name="item">要在 <see cref="T:System.Collections.Generic.List`1"/> 中定位的对象。对于引用类型,该值可以为 null。</param><param name="index">向后搜索的从零开始的起始索引。</param><param name="count">要搜索的部分中的元素数。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 超出的有效索引范围 <see cref="T:System.Collections.Generic.List`1"/>。- 或 -<paramref name="count"/> 小于 0。- 或 -<paramref name="index"/> 和 <paramref name="count"/> 未指定中的有效部分 <see cref="T:System.Collections.Generic.List`1"/>。</exception>
    [__DynamicallyInvokable]
    public int LastIndexOf(T item, int index, int count);
    /// <summary>
    /// 从 <see cref="T:System.Collections.Generic.List`1"/> 中移除特定对象的第一个匹配项。
    /// </summary>
    /// 
    /// <returns>
    /// 如果成功移除了 <paramref name="item"/>,则为 true;否则为 false。如果在 false 中没有找到 <paramref name="item"/>,则此方法也会返回 <see cref="T:System.Collections.Generic.List`1"/>。
    /// </returns>
    /// <param name="item">要从 <see cref="T:System.Collections.Generic.List`1"/> 中删除的对象。对于引用类型,该值可以为 null。</param>
    [__DynamicallyInvokable]
    public bool Remove(T item);
    /// <summary>
    /// 从 <see cref="T:System.Collections.IList"/> 中移除特定对象的第一个匹配项。
    /// </summary>
    /// <param name="item">要从 <see cref="T:System.Collections.IList"/> 中删除的对象。</param><exception cref="T:System.ArgumentException"><paramref name="item"/> 为类型不能分配给 <see cref="T:System.Collections.IList"/>。</exception>
    [__DynamicallyInvokable]
    void IList.Remove(object item);
    /// <summary>
    /// 移除与指定的谓词所定义的条件相匹配的所有元素。
    /// </summary>
    /// 
    /// <returns>
    /// 从 <see cref="T:System.Collections.Generic.List`1"/> 中移除的元素数。
    /// </returns>
    /// <param name="match"><see cref="T:System.Predicate`1"/> 委托,用于定义要移除的元素应满足的条件。</param><exception cref="T:System.ArgumentNullException"><paramref name="match"/> 为 null。</exception>
    [__DynamicallyInvokable]
    public int RemoveAll(Predicate<T> match);
    /// <summary>
    /// 移除 <see cref="T:System.Collections.Generic.List`1"/> 的指定索引处的元素。
    /// </summary>
    /// <param name="index">要移除的元素的从零开始的索引。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 小于 0。- 或 -<paramref name="index"/> 等于或大于 <see cref="P:System.Collections.Generic.List`1.Count"/>。</exception>
    [__DynamicallyInvokable]
    public void RemoveAt(int index);
    /// <summary>
    /// 从 <see cref="T:System.Collections.Generic.List`1"/> 中移除一系列元素。
    /// </summary>
    /// <param name="index">要移除的元素范围的从零开始的起始索引。</param><param name="count">要移除的元素数。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 小于 0。- 或 -<paramref name="count"/> 小于 0。</exception><exception cref="T:System.ArgumentException"><paramref name="index"/> 和 <paramref name="count"/> 不表示有效范围中的元素为 <see cref="T:System.Collections.Generic.List`1"/>。</exception>
    [__DynamicallyInvokable]
    public void RemoveRange(int index, int count);
    /// <summary>
    /// 将整个 <see cref="T:System.Collections.Generic.List`1"/> 中元素的顺序反转。
    /// </summary>
    [__DynamicallyInvokable]
    public void Reverse();
    /// <summary>
    /// 将指定范围中元素的顺序反转。
    /// </summary>
    /// <param name="index">要反转的范围的从零开始的起始索引。</param><param name="count">要反转的范围内的元素数。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 小于 0。- 或 -<paramref name="count"/> 小于 0。</exception><exception cref="T:System.ArgumentException"><paramref name="index"/> 和 <paramref name="count"/> 不表示有效范围中的元素为 <see cref="T:System.Collections.Generic.List`1"/>。</exception>
    [__DynamicallyInvokable]
    public void Reverse(int index, int count);
    /// <summary>
    /// 使用默认比较器对整个 <see cref="T:System.Collections.Generic.List`1"/> 中的元素进行排序。
    /// </summary>
    /// <exception cref="T:System.InvalidOperationException">默认比较器 <see cref="P:System.Collections.Generic.Comparer`1.Default"/> 找不到的一种实现 <see cref="T:System.IComparable`1"/> 泛型接口或 <see cref="T:System.IComparable"/> 类型的接口 <paramref name="T"/>。</exception>
    [__DynamicallyInvokable]
    public void Sort();
    /// <summary>
    /// 使用指定的比较器对整个 <see cref="T:System.Collections.Generic.List`1"/> 中的元素进行排序。
    /// </summary>
    /// <param name="comparer">比较元素时要使用的 <see cref="T:System.Collections.Generic.IComparer`1"/> 实现,若要使用默认比较器 <see cref="P:System.Collections.Generic.Comparer`1.Default"/>,则为 null。</param><exception cref="T:System.InvalidOperationException"><paramref name="comparer"/> 是 null, ,和默认比较器 <see cref="P:System.Collections.Generic.Comparer`1.Default"/> 找不到实现 <see cref="T:System.IComparable`1"/> 泛型接口或 <see cref="T:System.IComparable"/> 类型的接口 <paramref name="T"/>。</exception><exception cref="T:System.ArgumentException">实现 <paramref name="comparer"/> 在排序期间导致了错误。例如, <paramref name="comparer"/> 比较某个项与其自身时可能不会返回 0。</exception>
    [__DynamicallyInvokable]
    public void Sort(IComparer<T> comparer);
    /// <summary>
    /// 使用指定的比较器对 <see cref="T:System.Collections.Generic.List`1"/> 中某个范围内的元素进行排序。
    /// </summary>
    /// <param name="index">要排序范围的从零开始的起始索引。</param><param name="count">要排序的范围的长度。</param><param name="comparer">比较元素时要使用的 <see cref="T:System.Collections.Generic.IComparer`1"/> 实现,若要使用默认比较器 <see cref="P:System.Collections.Generic.Comparer`1.Default"/>,则为 null。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 小于 0。- 或 -<paramref name="count"/> 小于 0。</exception><exception cref="T:System.ArgumentException"><paramref name="index"/> 和 <paramref name="count"/> 未指定中的有效范围 <see cref="T:System.Collections.Generic.List`1"/>。- 或 -实现 <paramref name="comparer"/> 在排序期间导致了错误。例如, <paramref name="comparer"/> 比较某个项与其自身时可能不会返回 0。</exception><exception cref="T:System.InvalidOperationException"><paramref name="comparer"/> 是 null, ,和默认比较器 <see cref="P:System.Collections.Generic.Comparer`1.Default"/> 找不到实现 <see cref="T:System.IComparable`1"/> 泛型接口或 <see cref="T:System.IComparable"/> 类型的接口 <paramref name="T"/>。</exception>
    [__DynamicallyInvokable]
    public void Sort(int index, int count, IComparer<T> comparer);
    /// <summary>
    /// 使用指定的 <see cref="T:System.Comparison`1"/>,对整个 <see cref="T:System.Collections.Generic.List`1"/> 中的元素进行排序。
    /// </summary>
    /// <param name="comparison">比较元素时要使用的 <see cref="T:System.Comparison`1"/>。</param><exception cref="T:System.ArgumentNullException"><paramref name="comparison"/> 为 null。</exception><exception cref="T:System.ArgumentException">实现 <paramref name="comparison"/> 在排序期间导致了错误。例如, <paramref name="comparison"/> 比较某个项与其自身时可能不会返回 0。</exception>
    [__DynamicallyInvokable]
    public void Sort(Comparison<T> comparison);
    /// <summary>
    /// 将 <see cref="T:System.Collections.Generic.List`1"/> 的元素复制到新数组中。
    /// </summary>
    /// 
    /// <returns>
    /// 一个包含 <see cref="T:System.Collections.Generic.List`1"/> 的元素副本的数组。
    /// </returns>
    [__DynamicallyInvokable]
    public T[] ToArray();
    /// <summary>
    /// 将容量设置为 <see cref="T:System.Collections.Generic.List`1"/> 中元素的实际数目(如果该数目小于某个阈值)。
    /// </summary>
    [__DynamicallyInvokable]
    public void TrimExcess();
    /// <summary>
    /// 确定 <see cref="T:System.Collections.Generic.List`1"/> 中的每个元素是否都与指定谓词定义的条件匹配。
    /// </summary>
    /// 
    /// <returns>
    /// 如果 <see cref="T:System.Collections.Generic.List`1"/> 中的每个元素都与指定的谓词所定义的条件相匹配,则为 true;否则为 false。如果列表没有元素,则返回值为 true。
    /// </returns>
    /// <param name="match">用于定义检查元素时要对照条件的 <see cref="T:System.Predicate`1"/> 委托。</param><exception cref="T:System.ArgumentNullException"><paramref name="match"/> 为 null。</exception>
    [__DynamicallyInvokable]
    public bool TrueForAll(Predicate<T> match);
    /// <summary>
    /// 获取或设置该内部数据结构在不调整大小的情况下能够容纳的元素总数。
    /// </summary>
    /// 
    /// <returns>
    /// 在需要调整大小之前 <see cref="T:System.Collections.Generic.List`1"/> 可包含的元素数目。
    /// </returns>
    /// <exception cref="T:System.ArgumentOutOfRangeException"><see cref="P:System.Collections.Generic.List`1.Capacity"/> 设置一个值,则该值为小于 <see cref="P:System.Collections.Generic.List`1.Count"/>。</exception><exception cref="T:System.OutOfMemoryException">没有足够的内存可用系统上。</exception>
    [__DynamicallyInvokable]
    public int Capacity { [__DynamicallyInvokable] get; [__DynamicallyInvokable] set; }
    /// <summary>
    /// 获取 <see cref="T:System.Collections.Generic.List`1"/> 中包含的元素数。
    /// </summary>
    /// 
    /// <returns>
    /// <see cref="T:System.Collections.Generic.List`1"/> 中包含的元素数。
    /// </returns>
    [__DynamicallyInvokable]
    public int Count { [__DynamicallyInvokable] get; }
    /// <summary>
    /// 获取一个值,该值指示 <see cref="T:System.Collections.IList"/> 是否具有固定大小。
    /// </summary>
    /// 
    /// <returns>
    /// 如果 true 具有固定大小,则为 <see cref="T:System.Collections.IList"/>;否则为 false。在 <see cref="T:System.Collections.Generic.List`1"/> 的默认实现中,此属性始终返回 false。
    /// </returns>
    [__DynamicallyInvokable]
    bool IList.IsFixedSize { [__DynamicallyInvokable] get; }
    /// <summary>
    /// 获取一个值,该值指示 <see cref="T:System.Collections.Generic.ICollection`1"/> 是否为只读。
    /// </summary>
    /// 
    /// <returns>
    /// 如果 true 是只读的,则为 <see cref="T:System.Collections.Generic.ICollection`1"/>;否则为 false。在 <see cref="T:System.Collections.Generic.List`1"/> 的默认实现中,此属性始终返回 false。
    /// </returns>
    [__DynamicallyInvokable]
    bool ICollection<T>.IsReadOnly { [__DynamicallyInvokable] get; }
    /// <summary>
    /// 获取一个值,该值指示 <see cref="T:System.Collections.IList"/> 是否为只读。
    /// </summary>
    /// 
    /// <returns>
    /// 如果 true 是只读的,则为 <see cref="T:System.Collections.IList"/>;否则为 false。在 <see cref="T:System.Collections.Generic.List`1"/> 的默认实现中,此属性始终返回 false。
    /// </returns>
    [__DynamicallyInvokable]
    bool IList.IsReadOnly { [__DynamicallyInvokable] get; }
    /// <summary>
    /// 获取一个值,该值指示是否同步对 <see cref="T:System.Collections.ICollection"/> 的访问(线程安全)。
    /// </summary>
    /// 
    /// <returns>
    /// 如果对 true 的访问是同步的(线程安全),则为 <see cref="T:System.Collections.ICollection"/>;否则为 false。在 <see cref="T:System.Collections.Generic.List`1"/> 的默认实现中,此属性始终返回 false。
    /// </returns>
    [__DynamicallyInvokable]
    bool ICollection.IsSynchronized { [__DynamicallyInvokable] get; }
    /// <summary>
    /// 获取可用于同步对 <see cref="T:System.Collections.ICollection"/> 的访问的对象。
    /// </summary>
    /// 
    /// <returns>
    /// 可用于同步对 <see cref="T:System.Collections.ICollection"/> 的访问的对象。在 <see cref="T:System.Collections.Generic.List`1"/> 的默认实现中,此属性始终返回当前实例。
    /// </returns>
    [__DynamicallyInvokable]
    object ICollection.SyncRoot { [__DynamicallyInvokable] get; }
    /// <summary>
    /// 获取或设置指定索引处的元素。
    /// </summary>
    /// 
    /// <returns>
    /// 指定索引处的元素。
    /// </returns>
    /// <param name="index">要获取或设置的元素的从零开始的索引。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 小于 0。- 或 -<paramref name="index"/> 等于或大于 <see cref="P:System.Collections.Generic.List`1.Count"/>。</exception>
    [__DynamicallyInvokable]
    public T this[int index] { [__DynamicallyInvokable] get; [__DynamicallyInvokable] set; }
    /// <summary>
    /// 获取或设置指定索引处的元素。
    /// </summary>
    /// 
    /// <returns>
    /// 指定索引处的元素。
    /// </returns>
    /// <param name="index">要获取或设置的元素的从零开始的索引。</param><exception cref="T:System.ArgumentOutOfRangeException"><paramref name="index"/> 不是 <see cref="T:System.Collections.IList"/> 中的有效索引。</exception><exception cref="T:System.ArgumentException">此属性设置和 <paramref name="value"/> 属于类型不能分配给 <see cref="T:System.Collections.IList"/>。</exception>
    [__DynamicallyInvokable]
    object IList.this[int index] { [__DynamicallyInvokable] get; [__DynamicallyInvokable] set; }
    /// <summary>
    /// 枚举 <see cref="T:System.Collections.Generic.List`1"/> 的元素。
    /// </summary>
    [__DynamicallyInvokable]
    [Serializable]
    public struct Enumerator : IEnumerator<T>, IDisposable, IEnumerator
    {
      /// <summary>
      /// 释放由 <see cref="T:System.Collections.Generic.List`1.Enumerator"/> 使用的所有资源。
      /// </summary>
      [__DynamicallyInvokable]
      public void Dispose();
      /// <summary>
      /// 使枚举数前进到 <see cref="T:System.Collections.Generic.List`1"/> 的下一个元素。
      /// </summary>
      /// 
      /// <returns>
      /// 如果枚举数成功地推进到下一个元素,则为 true;如果枚举数越过集合的结尾,则为 false。
      /// </returns>
      /// <exception cref="T:System.InvalidOperationException">在创建了枚举数后集合被修改了。</exception>
      [__DynamicallyInvokable]
      public bool MoveNext();
      /// <summary>
      /// 将枚举数设置为其初始位置,该位置位于集合中第一个元素之前。
      /// </summary>
      /// <exception cref="T:System.InvalidOperationException">在创建了枚举数后集合被修改了。</exception>
      [__DynamicallyInvokable]
      void IEnumerator.Reset();
      /// <summary>
      /// 获取枚举数当前位置的元素。
      /// </summary>
      /// 
      /// <returns>
      /// <see cref="T:System.Collections.Generic.List`1"/> 中位于该枚举数当前位置的元素。
      /// </returns>
      [__DynamicallyInvokable]
      public T Current { [__DynamicallyInvokable] get; }
      /// <summary>
      /// 获取枚举数当前位置的元素。
      /// </summary>
      /// 
      /// <returns>
      /// <see cref="T:System.Collections.Generic.List`1"/> 中位于该枚举数当前位置的元素。
      /// </returns>
      /// <exception cref="T:System.InvalidOperationException">枚举数定位在该集合的第一个元素之前或最后一个元素之后。</exception>
      [__DynamicallyInvokable]
      object IEnumerator.Current { [__DynamicallyInvokable] get; }
    }
  }
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值