ICollection(T).IsReadOnly Property
Collapse the table of content
Expand the table of content

HashSet<T>.ICollection<T>.IsReadOnly Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets a value indicating whether a collection is read-only.

Namespace:  System.Collections.Generic
Assembly:  System.Core (in System.Core.dll)

bool ICollection<T>.IsReadOnly { get; }

Property Value

Type: System.Boolean
true if the collection is read-only; otherwise, false.

Implements

ICollection<T>.IsReadOnly

Retrieving the value of this property is an O(1) operation.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft