Dictionary<TKey,TValue>.IDictionary.IsReadOnly Proprietà
Definizione
Ottiene un valore che indica se IDictionary è di sola lettura.Gets a value that indicates whether the IDictionary is read-only.
property bool System::Collections::IDictionary::IsReadOnly { bool get(); };
bool System.Collections.IDictionary.IsReadOnly { get; }
member this.System.Collections.IDictionary.IsReadOnly : bool
ReadOnly Property IsReadOnly As Boolean Implements IDictionary.IsReadOnly
Valore della proprietà
true
se IDictionary è di sola lettura; in caso contrario, false
.true
if the IDictionary is read-only; otherwise, false
. Nell'implementazione predefinita di Dictionary<TKey,TValue>, questa proprietà restituisce sempre false
.In the default implementation of Dictionary<TKey,TValue>, this property always returns false
.
Implementazioni
Commenti
Una raccolta di sola lettura non consente l'aggiunta, la rimozione o la modifica di elementi dopo la sua creazione.A collection that is read-only does not allow the addition, removal, or modification of elements after the collection is created.
Una raccolta di sola lettura è semplicemente una raccolta con un wrapper che impedisce la modifica della raccolta. di conseguenza, se vengono apportate modifiche alla raccolta sottostante, la raccolta di sola lettura riflette tali modifiche.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.
Il recupero del valore di questa proprietà è un'operazione O (1).Getting the value of this property is an O(1) operation.