ReadOnlyCollection<T>.IList.IsFixedSize Propriedade
Definição
property bool System::Collections::IList::IsFixedSize { bool get(); };
bool System.Collections.IList.IsFixedSize { get; }
member this.System.Collections.IList.IsFixedSize : bool
ReadOnly Property IsFixedSize As Boolean Implements IList.IsFixedSize
Valor da propriedade
true se o IList tiver um valor fixo; caso contrário, false.true if the IList has a fixed size; otherwise, false. Na implementação padrão de ReadOnlyCollection<T>, essa propriedade sempre retorna true.In the default implementation of ReadOnlyCollection<T>, this property always returns true.
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.
Este membro é uma implementação do membro de interface explícita.This member is an explicit interface member implementation. Ele só pode ser usado quando a instância de ReadOnlyCollection<T> é convertida em uma interface de IDisposable.It can be used only when the ReadOnlyCollection<T> instance is cast to an IDisposable interface.