System.Collections.Specialized namespace

本文介绍了 .NET Framework 中 System.Collections.Specialized 命名空间下的多种特殊且类型安全的集合类,如 LinkedListDictionary、BitVector 和仅包含字符串的集合等。此外还概述了这些集合类的特点和适用场景。
NET Framework Class Library 
System.Collections.Specialized Namespace 

The System.Collections.Specialized namespace contains specialized and strongly-typed collections; for example, a linked list dictionary, a bit vector, and collections that contain only strings.

Classes
 ClassDescription
Public classCollectionsUtilCreates collections that ignore the case in strings.
Public classHybridDictionaryImplements IDictionary by using a ListDictionary while the collection is small, and then switching to a Hashtable when the collection gets large.
Public classListDictionaryImplements IDictionary using a singly linked list. Recommended for collections that typically contain 10 items or less.
Public classNameObjectCollectionBaseProvides the abstract base class for a collection of associated String keys and Object values that can be accessed either with the key or with the index.
Public classNameObjectCollectionBase.KeysCollectionRepresents a collection of the String keys of a collection.
Public classNameValueCollectionRepresents a collection of associated String keys and String values that can be accessed either with the key or with the index.
Public classOrderedDictionaryRepresents a collection of key/value pairs that are accessible by the key or index.
Public classStringCollectionRepresents a collection of strings.
Public classStringDictionaryImplements a hash table with the key and the value strongly typed to be strings rather than objects.
Public classStringEnumeratorSupports a simple iteration over a StringCollection.
Interfaces
 InterfaceDescription
Public interfaceIOrderedDictionaryRepresents an indexed collection of key/value pairs.
Structures
 StructureDescription
Public structureBitVector32Provides a simple structure that stores Boolean values and small integers in 32 bits of memory.
Public structureBitVector32.SectionRepresents a section of the vector that can contain an integer number.

  至于 ICollection, IEnumerable是System.Collection命名空间上的接口
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值