• System.Collections.Generic.ICollection.cs


    ylbtech-System.Collections.Generic.ICollection.cs
    1.返回顶部
    1、
    #region 程序集 mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    // C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.5mscorlib.dll
    #endregion
    
    using System.Runtime.CompilerServices;
    
    namespace System.Collections.Generic
    {
        //
        // 摘要:
        //     定义操作泛型集合的方法。
        //
        // 类型参数:
        //   T:
        //     集合中元素的类型。
        [TypeDependencyAttribute("System.SZArrayHelper")]
        public interface ICollection<T> : IEnumerable<T>, IEnumerable
        {
            //
            // 摘要:
            //     获取 System.Collections.Generic.ICollection`1 中包含的元素数。
            //
            // 返回结果:
            //     System.Collections.Generic.ICollection`1 中包含的元素个数。
            int Count { get; }
            //
            // 摘要:
            //     获取一个值,该值指示 System.Collections.Generic.ICollection`1 是否为只读。
            //
            // 返回结果:
            //     如果 System.Collections.Generic.ICollection`1 为只读,则为 true;否则为 false。
            bool IsReadOnly { get; }
    
            //
            // 摘要:
            //     将某项添加到 System.Collections.Generic.ICollection`1 中。
            //
            // 参数:
            //   item:
            //     要添加到 System.Collections.Generic.ICollection`1 的对象。
            //
            // 异常:
            //   T:System.NotSupportedException:
            //     System.Collections.Generic.ICollection`1 为只读。
            void Add(T item);
            //
            // 摘要:
            //     从 System.Collections.Generic.ICollection`1 中移除所有项。
            //
            // 异常:
            //   T:System.NotSupportedException:
            //     System.Collections.Generic.ICollection`1 为只读。
            void Clear();
            //
            // 摘要:
            //     确定 System.Collections.Generic.ICollection`1 是否包含特定值。
            //
            // 参数:
            //   item:
            //     要在 System.Collections.Generic.ICollection`1 中定位的对象。
            //
            // 返回结果:
            //     如果在 System.Collections.Generic.ICollection`1 中找到 item,则为 true;否则为 false。
            bool Contains(T item);
            //
            // 摘要:
            //     从特定的 System.Array 索引开始,将 System.Collections.Generic.ICollection`1 的元素复制到一个 System.Array
            //     中。
            //
            // 参数:
            //   array:
            //     作为从 System.Collections.Generic.ICollection`1 复制的元素的目标的一维 System.Array。 System.Array
            //     必须具有从零开始的索引。
            //
            //   arrayIndex:
            //     array 中从零开始的索引,从此索引处开始进行复制。
            //
            // 异常:
            //   T:System.ArgumentNullException:
            //     array 为 null。
            //
            //   T:System.ArgumentOutOfRangeException:
            //     arrayIndex 小于 0。
            //
            //   T:System.ArgumentException:
            //     源 System.Collections.Generic.ICollection`1 中的元素数目大于从 arrayIndex 到目标 array 末尾之间的可用空间。
            void CopyTo(T[] array, int arrayIndex);
            //
            // 摘要:
            //     从 System.Collections.Generic.ICollection`1 中移除特定对象的第一个匹配项。
            //
            // 参数:
            //   item:
            //     要从 System.Collections.Generic.ICollection`1 中移除的对象。
            //
            // 返回结果:
            //     如果已从 System.Collections.Generic.ICollection`1 中成功移除 item,则为 true;否则为 false。 如果在原始
            //     System.Collections.Generic.ICollection`1 中没有找到 item,该方法也会返回 false。
            //
            // 异常:
            //   T:System.NotSupportedException:
            //     System.Collections.Generic.ICollection`1 为只读。
            bool Remove(T item);
        }
    }
    2、
    2.返回顶部
     
    3.返回顶部
     
    4.返回顶部
     
    5.返回顶部
     
     
    6.返回顶部
     
    warn 作者:ylbtech
    出处:http://ylbtech.cnblogs.com/
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    Linux CentOS7 下设置tomcat 开机自启动
    MYSQL批量导入数据报:[Err] 2006
    HTML页面仿WORD样式
    /usr/bin/ld: cannot find -lxxx 问题
    Linux 重命名
    Linux mail
    cenos 7 mysql
    linux 解压与压缩
    python 字符串替换
    cpu相关信息(进程、线程、核...)
  • 原文地址:https://www.cnblogs.com/storebook/p/12638838.html
Copyright © 2020-2023  润新知