List<T>.IList.IsReadOnly Propriedade
Definição
property bool System::Collections::IList::IsReadOnly { bool get(); };
bool System.Collections.IList.IsReadOnly { get; }
member this.System.Collections.IList.IsReadOnly : bool
ReadOnly Property IsReadOnly As Boolean Implements IList.IsReadOnly
Valor da propriedade
true
se o IList for somente leitura; caso contrário, false
.true
if the IList is read-only; otherwise, false
. Na implementação padrão de List<T>, essa propriedade sempre retorna false
.In the default implementation of List<T>, this property always returns false
.
Implementações
Comentários
Uma coleção que seja somente leitura não permite a adição, a remoção ou a modificação de elementos após a coleção ser criada.A collection that is read-only does not allow the addition, removal, or modification of elements after the collection is created.
Uma coleção somente leitura é apenas uma coleção com um wrapper que impede a modificação da coleção; por isso, caso as alterações sejam feitas na coleção subjacente, a coleção somente leitura reflete as alterações.A collection that is read-only is simply a collection with a wrapper that prevents modifying the collection; therefore, if changes are made to the underlying collection, the read-only 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.