SortedList<TKey,TValue>.IDictionary.IsFixedSize Propriedade
Definição
Obtém um valor que indica se o IDictionary tem um tamanho fixo.Gets a value indicating whether the IDictionary has a fixed size.
property bool System::Collections::IDictionary::IsFixedSize { bool get(); };
bool System.Collections.IDictionary.IsFixedSize { get; }
ReadOnly Property IsFixedSize As Boolean Implements IDictionary.IsFixedSize
Valor da propriedade
true
se o IDictionary tiver um valor fixo; caso contrário, false
.true
if the IDictionary has a fixed size; otherwise, false
. Na implementação padrão de SortedList<TKey,TValue>, essa propriedade sempre retorna false
.In the default implementation of SortedList<TKey,TValue>, this property always returns false
.
Implementações
Comentários
Uma coleção com um tamanho fixo não permite a adição ou a remoção de elementos após a coleção ser criada, mas permite a modificação de elementos existentes.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.
Uma coleção com um tamanho fixo é simplesmente uma coleção com um wrapper que impede a adição e a remoção de elementos; por isso, caso as alterações sejam feitas na coleção subjacente, inclusive a adição ou a remoção de elementos, a coleção de tamanho fixo reflete essas alterações.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.
A recuperação do valor dessa propriedade é uma operação O(1).Retrieving the value of this property is an O(1) operation.