HybridDictionary.IsFixedSize 属性

定义

获取一个值,该值指示 HybridDictionary 是否具有固定大小。Gets a value indicating whether the HybridDictionary has a fixed size.

public:
 property bool IsFixedSize { bool get(); };
public bool IsFixedSize { get; }
member this.IsFixedSize : bool
Public ReadOnly Property IsFixedSize As Boolean

属性值

此属性始终返回 falseThis property always returns false.

实现

注解

HybridDictionary 实现 IsFixedSize 属性,因为 System.Collections.IDictionary 接口需要此属性。HybridDictionary implements the IsFixedSize property because it is required by the System.Collections.IDictionary interface.

具有固定大小的集合在创建之后不能再添加或移除元素,但是允许修改现有元素。A collection with a fixed size does not allow the addition or removal of elements after the collection is created, but it allows the modification of existing elements.

具有固定大小的集合就是一个集合,其中包含阻止添加和移除元素的包装;因此,如果对基础集合进行了更改,包括添加或删除元素,则固定大小的集合将反映这些更改。A collection with a fixed size is simply a collection with a wrapper that prevents adding and removing elements; therefore, if changes are made to the underlying collection, including the addition or removal of elements, the fixed-size collection reflects those changes.

检索此属性的值的运算复杂度为 O(1)。Retrieving the value of this property is an O(1) operation.

适用于