码迷,mamicode.com
首页 > 其他好文 > 详细

System.Collections.IList.cs

时间:2020-04-05 20:43:01      阅读:70      评论:0      收藏:0      [点我收藏+]

标签:lis   ref   mes   摘要   oat   Fix   lse   table   value   

ylbtech-System.Collections.IList.cs

 

1.返回顶部
1、
#region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll
#endregion

using System.Reflection;
using System.Runtime.InteropServices;

namespace System.Collections
{
    //
    // 摘要:
    //     表示可按照索引单独访问的对象的非泛型集合。
    [ComVisible(true)]
    [DefaultMember("Item")]
    public interface IList : ICollection, IEnumerable
    {
        //
        // 摘要:
        //     获取或设置位于指定索引处的元素。
        //
        // 参数:
        //   index:
        //     要获得或设置的元素从零开始的索引。
        //
        // 返回结果:
        //     位于指定索引处的元素。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     index 不是 System.Collections.IList 中的有效索引。
        //
        //   T:System.NotSupportedException:
        //     设置该属性,而且 System.Collections.IList 为只读。
        object this[int index] { get; set; }

        //
        // 摘要:
        //     获取一个值,该值指示 System.Collections.IList 是否为只读。
        //
        // 返回结果:
        //     如果 System.Collections.IList 为只读,则为 true;否则为 false。
        bool IsReadOnly { get; }
        //
        // 摘要:
        //     获取一个值,该值指示 System.Collections.IList 是否具有固定大小。
        //
        // 返回结果:
        //     如果 System.Collections.IList 具有固定大小,则为 true;否则为 false。
        bool IsFixedSize { get; }

        //
        // 摘要:
        //     将某项添加到 System.Collections.IList 中。
        //
        // 参数:
        //   value:
        //     要添加到 System.Collections.IList 的对象。
        //
        // 返回结果:
        //     新元素所插入到的位置,或为 -1 以指示未将该项插入到集合中。
        //
        // 异常:
        //   T:System.NotSupportedException:
        //     System.Collections.IList 为只读。 - 或 - System.Collections.IList 具有固定大小。
        int Add(object value);
        //
        // 摘要:
        //     从 System.Collections.IList 中移除所有项。
        //
        // 异常:
        //   T:System.NotSupportedException:
        //     System.Collections.IList 为只读。
        void Clear();
        //
        // 摘要:
        //     确定 System.Collections.IList 是否包含特定值。
        //
        // 参数:
        //   value:
        //     要在 System.Collections.IList 中查找的对象。
        //
        // 返回结果:
        //     如果在 System.Collections.IList 中找到 System.Object,则为 true;否则为 false。
        bool Contains(object value);
        //
        // 摘要:
        //     确定 System.Collections.IList 中特定项的索引。
        //
        // 参数:
        //   value:
        //     要在 System.Collections.IList 中查找的对象。
        //
        // 返回结果:
        //     如果在列表中找到,则为 value 的索引;否则为 -1。
        int IndexOf(object value);
        //
        // 摘要:
        //     将一个项插入指定索引处的 System.Collections.IList。
        //
        // 参数:
        //   index:
        //     从零开始的索引,应在该位置插入 value。
        //
        //   value:
        //     要插入 System.Collections.IList 的对象。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     index 不是 System.Collections.IList 中的有效索引。
        //
        //   T:System.NotSupportedException:
        //     System.Collections.IList 为只读。 - 或 - System.Collections.IList 具有固定大小。
        //
        //   T:System.NullReferenceException:
        //     value 在 System.Collections.IList 中是 null 引用。
        void Insert(int index, object value);
        //
        // 摘要:
        //     从 System.Collections.IList 中移除特定对象的第一个匹配项。
        //
        // 参数:
        //   value:
        //     要从 System.Collections.IList 中移除的对象。
        //
        // 异常:
        //   T:System.NotSupportedException:
        //     System.Collections.IList 为只读。 - 或 - System.Collections.IList 具有固定大小。
        void Remove(object value);
        //
        // 摘要:
        //     移除指定索引处的 System.Collections.IList 项。
        //
        // 参数:
        //   index:
        //     要移除的项的从零开始的索引。
        //
        // 异常:
        //   T:System.ArgumentOutOfRangeException:
        //     index 不是 System.Collections.IList 中的有效索引。
        //
        //   T:System.NotSupportedException:
        //     System.Collections.IList 为只读。 - 或 - System.Collections.IList 具有固定大小。
        void RemoveAt(int index);
    }
}
2、
2.返回顶部
 
3.返回顶部
 
4.返回顶部
 
5.返回顶部
 
 
6.返回顶部
 
技术图片 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

System.Collections.IList.cs

标签:lis   ref   mes   摘要   oat   Fix   lse   table   value   

原文地址:https://www.cnblogs.com/storebook/p/12638760.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!