257 implementations of IsReadOnly
InMemory.FunctionalTests (2)
Http2\Http2ConnectionTests.cs (1)
292public bool IsReadOnly => _innerHeaders.IsReadOnly;
Http3\Http3ConnectionTests.cs (1)
643public bool IsReadOnly => _innerHeaders.IsReadOnly;
Microsoft.AspNetCore.Components (1)
src\Http\Http.Abstractions\src\Routing\RouteValueDictionary.cs (1)
317bool ICollection<KeyValuePair<string, object?>>.IsReadOnly => false;
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
2421public bool IsReadOnly => false;
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionItems.cs (1)
109bool ICollection<KeyValuePair<object, object?>>.IsReadOnly
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
1392public bool IsReadOnly => false;
Microsoft.AspNetCore.Http (4)
HeaderDictionary.cs (1)
158public bool IsReadOnly { get; set; }
Internal\ItemsDictionary.cs (1)
113bool ICollection<KeyValuePair<object, object?>>.IsReadOnly => _items?.IsReadOnly ?? false;
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
79public bool IsReadOnly
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
150bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
Microsoft.AspNetCore.Http.Abstractions (11)
EndpointFilterInvocationContextOfT.Generated.cs (10)
48public bool IsReadOnly => false; 176public bool IsReadOnly => false; 311public bool IsReadOnly => false; 453public bool IsReadOnly => false; 602public bool IsReadOnly => false; 758public bool IsReadOnly => false; 921public bool IsReadOnly => false; 1091public bool IsReadOnly => false; 1268public bool IsReadOnly => false; 1452public bool IsReadOnly => false;
Routing\RouteValueDictionary.cs (1)
317bool ICollection<KeyValuePair<string, object?>>.IsReadOnly => false;
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\Validation\ValidationStateDictionary.cs (1)
58public bool IsReadOnly => ((IDictionary<object, ValidationStateEntry>)_inner).IsReadOnly;
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
ModelBinding\ModelMetadataTest.cs (1)
746public bool IsReadOnly
Microsoft.AspNetCore.Mvc.Core (2)
Infrastructure\CopyOnWriteList.cs (1)
45public bool IsReadOnly => false;
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
79public bool IsReadOnly
Microsoft.AspNetCore.Mvc.IntegrationTests (8)
ActionParametersIntegrationTest.cs (1)
1019public bool IsReadOnly
CollectionModelBinderIntegrationTest.cs (4)
1244bool ICollection<string>.IsReadOnly 1313bool ICollection<string>.IsReadOnly 1384bool ICollection<T>.IsReadOnly 1453bool ICollection<T>.IsReadOnly
DictionaryModelBinderIntegrationTest.cs (2)
1541bool ICollection<KeyValuePair<string, string>>.IsReadOnly 1646bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
TryUpdateModelIntegrationTest.cs (1)
1310public bool IsReadOnly
Microsoft.AspNetCore.Mvc.ViewFeatures (5)
AttributeDictionary.cs (3)
60public bool IsReadOnly => false; 377public bool IsReadOnly => true; 484public bool IsReadOnly => true;
TempDataDictionary.cs (1)
75bool ICollection<KeyValuePair<string, object?>>.IsReadOnly
ViewDataDictionary.cs (1)
326public bool IsReadOnly
Microsoft.AspNetCore.Owin (3)
DictionaryStringArrayWrapper.cs (1)
34bool ICollection<KeyValuePair<string, string[]>>.IsReadOnly => Inner.IsReadOnly;
DictionaryStringValuesWrapper.cs (1)
79bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly => Inner.IsReadOnly;
OwinEnvironment.cs (1)
276bool ICollection<KeyValuePair<string, object>>.IsReadOnly
Microsoft.AspNetCore.Razor (1)
TagHelpers\TagHelperAttributeList.cs (1)
121bool ICollection<TagHelperAttribute>.IsReadOnly => false;
Microsoft.AspNetCore.Razor.Runtime (1)
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
79public bool IsReadOnly
Microsoft.AspNetCore.Routing (1)
RouteEndpointDataSource.cs (1)
351public bool IsReadOnly { get; set; }
Microsoft.AspNetCore.Server.HttpSys (3)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
64public bool IsReadOnly { get; internal set; }
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
169bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly
UrlPrefixCollection.cs (1)
46public bool IsReadOnly
Microsoft.AspNetCore.Server.IIS (2)
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
64public bool IsReadOnly { get; internal set; }
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
169bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\HttpHeaders.cs (1)
117bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly => _isReadOnly;
Internal\ServerAddressesCollection.cs (2)
25public bool IsReadOnly => false; 113public bool IsReadOnly { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Http1\Http1ConnectionTests.cs (1)
1200public bool IsReadOnly => _innerHeaders.IsReadOnly;
Microsoft.AspNetCore.Shared.Tests (5)
ClosedGenericMatcherTest.cs (1)
259bool ICollection<KeyValuePair<string, object>>.IsReadOnly
src\Shared\CopyOnWriteDictionary\CopyOnWriteDictionary.cs (1)
79public bool IsReadOnly
src\Shared\Dictionary\AdaptiveCapacityDictionary.cs (1)
150bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (1)
64public bool IsReadOnly { get; internal set; }
src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (1)
169bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly
Microsoft.Build (15)
Collections\ArrayDictionary.cs (1)
86public bool IsReadOnly => true;
Collections\CopyOnWritePropertyDictionary.cs (1)
78bool ICollection<KeyValuePair<string, T>>.IsReadOnly => false;
Collections\PropertyDictionary.cs (1)
144bool ICollection<KeyValuePair<string, T>>.IsReadOnly => false;
Collections\ReadOnlyConvertingDictionary.cs (1)
73public bool IsReadOnly => true;
Collections\RetrievableEntryHashSet\HashSet.cs (2)
470public bool IsReadOnlyIsReadOnly
Construction\ProjectElementContainer.cs (1)
786public bool IsReadOnly => true;
CopyOnWriteDictionary.cs (1)
129public bool IsReadOnly => ((IDictionary<string, V>)_backing).IsReadOnly;
Instance\ImmutableProjectCollections\ImmutableElementCollectionConverter.cs (3)
45public bool IsReadOnlyIsReadOnly => true; 124public bool IsReadOnly => true;
Instance\ImmutableProjectCollections\ImmutableItemDictionary.cs (1)
166public bool IsReadOnly => true;
ReadOnlyCollection.cs (1)
57public bool IsReadOnly
ReadOnlyEmptyCollection.cs (1)
61public bool IsReadOnly
ReadOnlyEmptyDictionary.cs (1)
65public bool IsReadOnly
Microsoft.Build.Engine (1)
Engine\ToolsetCollection.cs (1)
111public bool IsReadOnly
Microsoft.Build.Framework (14)
ImmutableSegmentedDictionary`2.cs (1)
104bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
ImmutableSegmentedDictionary`2+Builder.cs (1)
70bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
ImmutableSegmentedDictionary`2+Builder+KeyCollection.cs (1)
28bool ICollection<TKey>.IsReadOnly => false;
ImmutableSegmentedDictionary`2+Builder+ValueCollection.cs (1)
28bool ICollection<TValue>.IsReadOnly => false;
ImmutableSegmentedDictionary`2+KeyCollection.cs (1)
24bool ICollection<TKey>.IsReadOnly => true;
ImmutableSegmentedDictionary`2+ValueCollection.cs (1)
24bool ICollection<TValue>.IsReadOnly => true;
ImmutableSegmentedList`1.cs (1)
88bool ICollection<T>.IsReadOnly => true;
ImmutableSegmentedList`1+Builder.cs (1)
26bool ICollection<T>.IsReadOnly => ICollectionCalls<T>.IsReadOnly(ref _builder);
ImmutableSegmentedList`1+ValueBuilder.cs (1)
37bool ICollection<T>.IsReadOnly => false;
SegmentedArray`1.cs (1)
108public bool IsReadOnly => true;
SegmentedDictionary`2.cs (3)
840bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false; 1303bool ICollection<TKey>.IsReadOnly => true; 1503bool ICollection<TValue>.IsReadOnly => true;
SegmentedList`1.cs (1)
157bool ICollection<T>.IsReadOnly => false;
Microsoft.Build.Tasks.Core (4)
CopyOnWriteDictionary.cs (1)
129public bool IsReadOnly => ((IDictionary<string, V>)_backing).IsReadOnly;
ReadOnlyCollection.cs (1)
57public bool IsReadOnly
ReadOnlyEmptyCollection.cs (1)
61public bool IsReadOnly
ReadOnlyEmptyDictionary.cs (1)
65public bool IsReadOnly
Microsoft.Build.Utilities.Core (3)
CopyOnWriteDictionary.cs (1)
129public bool IsReadOnly => ((IDictionary<string, V>)_backing).IsReadOnly;
ReadOnlyEmptyCollection.cs (1)
61public bool IsReadOnly
ReadOnlyEmptyDictionary.cs (1)
65public bool IsReadOnly
Microsoft.Extensions.Configuration (2)
ConfigurationManager.cs (2)
208public bool IsReadOnly => false; 289public bool IsReadOnly => false;
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ServiceCollection.cs (1)
25public bool IsReadOnly => _isReadOnly;
Microsoft.Extensions.Http (1)
DependencyInjection\DefaultHttpClientBuilderServiceCollection.cs (1)
65public bool IsReadOnly => _services.IsReadOnly;
Microsoft.Extensions.Primitives (1)
StringValues.cs (1)
114bool ICollection<string?>.IsReadOnly => true;
Microsoft.Interop.SourceGeneration (1)
ValueEqualityImmutableDictionary.cs (1)
50public bool IsReadOnly => ((ICollection<KeyValuePair<T, U>>)Map).IsReadOnly;
MSBuild (3)
CopyOnWriteDictionary.cs (1)
129public bool IsReadOnly => ((IDictionary<string, V>)_backing).IsReadOnly;
ReadOnlyEmptyCollection.cs (1)
61public bool IsReadOnly
ReadOnlyEmptyDictionary.cs (1)
65public bool IsReadOnly
MSBuildTaskHost (4)
CopyOnWriteDictionary.cs (1)
129public bool IsReadOnly => ((IDictionary<string, V>)_backing).IsReadOnly;
Immutable\ImmutableDictionary.cs (1)
51public bool IsReadOnly => true;
ReadOnlyEmptyCollection.cs (1)
61public bool IsReadOnly
ReadOnlyEmptyDictionary.cs (1)
65public bool IsReadOnly
PresentationCore (42)
MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
753public bool IsReadOnly
MS\Internal\FontFace\TypefaceCollection.cs (1)
108public bool IsReadOnly
MS\Internal\PartialArray.cs (1)
53public bool IsReadOnly
MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
86public bool IsReadOnly
MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
72public bool IsReadOnly
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CharacterBuffer.cs (1)
131public bool IsReadOnly
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\PartialList.cs (1)
113public bool IsReadOnly
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\SequentialUshortCollection.cs (1)
79public bool IsReadOnly
System\Windows\FreezableCollection.cs (1)
400bool ICollection<T>.IsReadOnly
System\Windows\Generated\TextDecorationCollection.cs (1)
301bool ICollection<TextDecoration>.IsReadOnly
System\Windows\Ink\StrokeCollection.cs (1)
891bool ICollection<Stroke>.IsReadOnly
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
311bool ICollection<Timeline>.IsReadOnly
System\Windows\Media\Animation\TimelineClockCollection.cs (1)
56public bool IsReadOnly
System\Windows\Media\CharacterMetricsDictionary.cs (1)
89public bool IsReadOnly
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
86public bool IsReadOnly
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
307bool ICollection<BitmapEffect>.IsReadOnly
System\Windows\Media\FamilyMapCollection.cs (1)
156public bool IsReadOnly
System\Windows\Media\FamilyTypefaceCollection.cs (1)
144public bool IsReadOnly
System\Windows\Media\Fonts.cs (1)
357public bool IsReadOnly
System\Windows\Media\Generated\DoubleCollection.cs (1)
260bool ICollection<double>.IsReadOnly
System\Windows\Media\Generated\DrawingCollection.cs (1)
323bool ICollection<Drawing>.IsReadOnly
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
309bool ICollection<GeneralTransform>.IsReadOnly
System\Windows\Media\Generated\GeometryCollection.cs (1)
323bool ICollection<Geometry>.IsReadOnly
System\Windows\Media\Generated\GradientStopCollection.cs (1)
309bool ICollection<GradientStop>.IsReadOnly
System\Windows\Media\Generated\Int32Collection.cs (1)
260bool ICollection<int>.IsReadOnly
System\Windows\Media\Generated\PathFigureCollection.cs (1)
310bool ICollection<PathFigure>.IsReadOnly
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
309bool ICollection<PathSegment>.IsReadOnly
System\Windows\Media\Generated\PointCollection.cs (1)
260bool ICollection<Point>.IsReadOnly
System\Windows\Media\Generated\TextEffectCollection.cs (1)
309bool ICollection<TextEffect>.IsReadOnly
System\Windows\Media\Generated\TransformCollection.cs (1)
323bool ICollection<Transform>.IsReadOnly
System\Windows\Media\Generated\VectorCollection.cs (1)
260bool ICollection<Vector>.IsReadOnly
System\Windows\Media\GlyphRun.cs (2)
2174public bool IsReadOnly 2276public bool IsReadOnly
System\Windows\Media\GlyphTypeface.cs (2)
1845public bool IsReadOnly 1930public bool IsReadOnly
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
305bool ICollection<GeneralTransform3D>.IsReadOnly
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
319bool ICollection<Material>.IsReadOnly
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
319bool ICollection<Model3D>.IsReadOnly
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
256bool ICollection<Point3D>.IsReadOnly
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
319bool ICollection<Transform3D>.IsReadOnly
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
256bool ICollection<Vector3D>.IsReadOnly
System\Windows\Media3D\Visual3DCollection.cs (1)
306bool ICollection<Visual3D>.IsReadOnly
PresentationFramework (19)
MS\Internal\Annotations\ObservableDictionary.cs (1)
269public bool IsReadOnly
MS\Internal\Data\RBTree.cs (1)
594public bool IsReadOnly
MS\Internal\Documents\ContentElementCollection.cs (1)
554public bool IsReadOnly // bool IList.IsReadOnly {get;}; bool ICollection<T>.IsReadOnly {get;}
MS\Internal\ListOfObject.cs (1)
82bool ICollection<object>.IsReadOnly
MS\Internal\WeakDictionary.cs (3)
63public bool IsReadOnly 150public bool IsReadOnly 317public bool IsReadOnly
MS\Internal\WeakHashSet.cs (1)
67public bool IsReadOnly
System\Windows\Controls\ColumnDefinition.cs (1)
405public bool IsReadOnly // bool IList.IsReadOnly {get;}; bool ICollection<T>.IsReadOnly {get;}
System\Windows\Controls\CustomDictionarySources.cs (1)
201bool ICollection<Uri>.IsReadOnly
System\Windows\Controls\RowDefinition.cs (1)
405public bool IsReadOnly // bool IList.IsReadOnly {get;}; bool ICollection<T>.IsReadOnly {get;}
System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
419public bool IsReadOnly
System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
190public bool IsReadOnly
System\Windows\Documents\TableCellCollection.cs (1)
364public bool IsReadOnly
System\Windows\Documents\TableColumnCollection.cs (1)
372public bool IsReadOnly // bool IList.IsReadOnly {get;}; bool ICollection<T>.IsReadOnly {get;}
System\Windows\Documents\TableRowCollection.cs (1)
364public bool IsReadOnly
System\Windows\Documents\TableRowGroupCollection.cs (1)
364public bool IsReadOnly
System\Windows\Documents\TextElementCollection.cs (1)
183public bool IsReadOnly
System\Windows\TriggerActionCollection.cs (1)
62public bool IsReadOnly
System.Collections (8)
System\Collections\Generic\LinkedList.cs (1)
64bool ICollection<T>.IsReadOnly
System\Collections\Generic\SortedDictionary.cs (3)
98bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly 600bool ICollection<TKey>.IsReadOnly 761bool ICollection<TValue>.IsReadOnly
System\Collections\Generic\SortedList.cs (3)
365bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly 1015public bool IsReadOnly 1129public bool IsReadOnly
System\Collections\Generic\SortedSet.cs (1)
277bool ICollection<T>.IsReadOnly => false;
System.Collections.Concurrent (1)
System\Collections\Concurrent\ConcurrentDictionary.cs (1)
1602bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false;
System.Collections.Immutable (15)
System\Collections\Frozen\FrozenDictionary.cs (1)
408bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true;
System\Collections\Frozen\FrozenSet.cs (1)
260bool ICollection<T>.IsReadOnly => true;
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
183bool ICollection<T>.IsReadOnly
System\Collections\Immutable\ImmutableArray_1.cs (1)
42bool ICollection<T>.IsReadOnly
System\Collections\Immutable\ImmutableDictionary_2.Builder.cs (1)
149bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
System\Collections\Immutable\ImmutableDictionary_2.cs (1)
269bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
System\Collections\Immutable\ImmutableHashSet_1.Builder.cs (1)
92bool ICollection<T>.IsReadOnly
System\Collections\Immutable\ImmutableHashSet_1.cs (1)
496bool ICollection<T>.IsReadOnly
System\Collections\Immutable\ImmutableList_1.Builder.cs (1)
79bool ICollection<T>.IsReadOnly
System\Collections\Immutable\ImmutableList_1.cs (1)
975bool ICollection<T>.IsReadOnly => true;
System\Collections\Immutable\ImmutableSortedDictionary_2.Builder.cs (1)
127bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
System\Collections\Immutable\ImmutableSortedDictionary_2.cs (1)
161bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly
System\Collections\Immutable\ImmutableSortedSet_1.Builder.cs (1)
85bool ICollection<T>.IsReadOnly
System\Collections\Immutable\ImmutableSortedSet_1.cs (1)
720bool ICollection<T>.IsReadOnly
System\Collections\Immutable\KeysOrValuesCollectionAccessor.cs (1)
44public bool IsReadOnly
System.ComponentModel.Composition (3)
Microsoft\Internal\Collections\CollectionServices.CollectionOfObject.cs (2)
71public bool IsReadOnly 126public bool IsReadOnly
System\ComponentModel\Composition\Hosting\ComposablePartCatalogCollection.cs (1)
161public bool IsReadOnly
System.Composition.Hosting (1)
System\Composition\Hosting\Core\CycleBreakingMetadataDictionary.cs (1)
100public bool IsReadOnly
System.Data.Common (1)
System\Data\Common\DbBatchCommandCollection.cs (1)
27public abstract bool IsReadOnly { get; }
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\ActivityTagsCollection.cs (1)
132public bool IsReadOnly => false;
System\Diagnostics\Metrics\TagList.cs (1)
101public readonly bool IsReadOnly => false;
System.Diagnostics.Process (1)
System\Collections\Specialized\DictionaryWrapper.cs (1)
37public bool IsReadOnly => ((IDictionary)_contents).IsReadOnly;
System.DirectoryServices.AccountManagement (2)
artifacts\obj\System.DirectoryServices.AccountManagement\Debug\net9.0\System.DirectoryServices.AccountManagement.notsupported.cs (2)
230public bool IsReadOnly { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } } 358public bool IsReadOnly { get { throw new System.PlatformNotSupportedException(System.SR.DirectoryServicesAccountManagement_PlatformNotSupported); } }
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.cs (1)
740public bool IsReadOnly => false;
System.Linq (6)
System\Linq\Grouping.cs (1)
401bool ICollection<TElement>.IsReadOnly => true;
System\Linq\Lookup.cs (2)
294bool ICollection<IGrouping<TKey, TElement>>.IsReadOnly => true; 321public bool IsReadOnly => true;
System\Linq\Range.SpeedOpt.cs (1)
105public bool IsReadOnly => true;
System\Linq\Repeat.SpeedOpt.cs (1)
109public bool IsReadOnly => true;
System\Linq\SkipTake.SpeedOpt.cs (1)
189public bool IsReadOnly => true;
System.Linq.Expressions (6)
System\Dynamic\ExpandoObject.cs (3)
424public bool IsReadOnly => true; 574public bool IsReadOnly => true; 671bool ICollection<KeyValuePair<string, object?>>.IsReadOnly => false;
System\Dynamic\Utils\ListArgumentProvider.cs (1)
113public bool IsReadOnly => true;
System\Linq\Expressions\BlockExpression.cs (1)
786public bool IsReadOnly
System\Runtime\CompilerServices\ReadOnlyCollectionBuilder.cs (1)
228bool ICollection<T>.IsReadOnly => false;
System.Linq.Parallel (1)
System\Linq\Parallel\QueryOperators\QueryResults.cs (1)
136bool ICollection<T>.IsReadOnly
System.Net.Http (3)
System\Net\Http\Headers\HttpHeaderValueCollection.cs (1)
43public bool IsReadOnly
System\Net\Http\Headers\ObjectCollection.cs (1)
34public bool IsReadOnly => false;
System\Net\Http\HttpRequestOptions.cs (1)
36bool ICollection<KeyValuePair<string, object?>>.IsReadOnly => ((IDictionary<string, object?>)Options).IsReadOnly;
System.Net.HttpListener (1)
System\Net\HttpListenerPrefixCollection.cs (1)
74public bool IsReadOnly => false;
System.Net.NetworkInformation (4)
System\Net\NetworkInformation\GatewayIPAddressInformationCollection.cs (1)
35public virtual bool IsReadOnly
System\Net\NetworkInformation\IPAddressInformationCollection.cs (1)
29public virtual bool IsReadOnly
System\Net\NetworkInformation\MulticastIPAddressInformationCollection.cs (1)
29public virtual bool IsReadOnly
System\Net\NetworkInformation\UnicastIPAddressInformationCollection.cs (1)
30public virtual bool IsReadOnly
System.Net.Primitives (2)
System\Net\CookieCollection.cs (1)
113public bool IsReadOnly
System\Net\NetworkInformation\IPAddressCollection.cs (1)
27public virtual bool IsReadOnly
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\ArraySegment.cs (1)
229bool ICollection<T>.IsReadOnly =>
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\Dictionary.cs (3)
1033bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => false; 1504bool ICollection<TKey>.IsReadOnly => true; 1699bool ICollection<TValue>.IsReadOnly => true;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (1)
361bool ICollection<T>.IsReadOnly => false;
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\List.cs (1)
132bool ICollection<T>.IsReadOnly => false;
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (1)
159bool ICollection<T>.IsReadOnly => items.IsReadOnly;
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyCollection.cs (1)
57bool ICollection<T>.IsReadOnly => true;
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\ReadOnlyDictionary.cs (3)
83bool ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly => true; 285bool ICollection<TKey>.IsReadOnly => true; 338bool ICollection<TValue>.IsReadOnly => true;
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\EventPayload.cs (1)
83public bool IsReadOnly => true;
System.Private.Xml (4)
System\Xml\Xsl\ListBase.cs (1)
63public virtual bool IsReadOnly
System\Xml\Xsl\QIL\QilNode.cs (1)
150public virtual bool IsReadOnly
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (2)
174bool ICollection<T>.IsReadOnly 670bool ICollection<XPathItem>.IsReadOnly
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
25public bool IsReadOnly { get; internal set; }
System.Security.Principal.Windows (1)
artifacts\obj\System.Security.Principal.Windows\Debug\net9.0\System.Security.Principal.Windows.notsupported.cs (1)
48bool System.Collections.Generic.ICollection<System.Security.Principal.IdentityReference>.IsReadOnly { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); } }
System.Speech (1)
artifacts\obj\System.Speech\Debug\net9.0\System.Speech.notsupported.cs (1)
303bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Speech.Recognition.SemanticValue>>.IsReadOnly { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemSpeech); } }
System.Text.Json (5)
System\Text\Json\JsonPropertyDictionary.KeyCollection.cs (1)
29public bool IsReadOnly => true;
System\Text\Json\JsonPropertyDictionary.ValueCollection.cs (1)
29public bool IsReadOnly => true;
System\Text\Json\Nodes\JsonArray.IList.cs (1)
158bool ICollection<JsonNode?>.IsReadOnly => false;
System\Text\Json\Nodes\JsonObject.IDictionary.cs (1)
186bool ICollection<KeyValuePair<string, JsonNode?>>.IsReadOnly => false;
System\Text\Json\Serialization\ConfigurationList.cs (1)
24public abstract bool IsReadOnly { get; }
System.Text.RegularExpressions (3)
System\Text\RegularExpressions\CaptureCollection.cs (1)
28public bool IsReadOnly => true;
System\Text\RegularExpressions\GroupCollection.cs (1)
33public bool IsReadOnly => true;
System\Text\RegularExpressions\MatchCollection.cs (1)
40public bool IsReadOnly => true;
System.Xaml (3)
System\Xaml\NameScope.cs (1)
110public bool IsReadOnly => false;
System\Xaml\NameScopeDictionary.cs (1)
253bool ICollection<KeyValuePair<string, object>>.IsReadOnly
System\Xaml\XamlSchemaContext.cs (1)
1440bool ICollection<T>.IsReadOnly
148 references to IsReadOnly
InMemory.FunctionalTests (61)
Http2\Http2ConnectionTests.cs (1)
292public bool IsReadOnly => _innerHeaders.IsReadOnly;
Http2\Http2StreamTests.cs (30)
2317Assert.False(trailers.IsReadOnly); 4173Assert.True(context.Response.Headers.IsReadOnly); 4174Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4229Assert.True(context.Response.Headers.IsReadOnly); 4230Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4297Assert.False(context.Response.Headers.IsReadOnly); 4298Assert.False(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4347Assert.True(context.Response.Headers.IsReadOnly); 4352Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4413Assert.True(context.Response.Headers.IsReadOnly); 4414Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4469Assert.True(context.Response.Headers.IsReadOnly); 4473Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4586Assert.False(context.Response.Headers.IsReadOnly); 4592Assert.True(context.Response.Headers.IsReadOnly); 4594Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4662Assert.True(context.Response.Headers.IsReadOnly); 4668Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4737Assert.True(context.Response.Headers.IsReadOnly); 4744Assert.False(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4808Assert.True(context.Response.Headers.IsReadOnly); 4815Assert.False(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4877Assert.True(context.Response.Headers.IsReadOnly); 4883Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 4959Assert.True(context.Response.Headers.IsReadOnly); 4965Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 5041Assert.True(context.Response.Headers.IsReadOnly); 5047Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 5125Assert.True(context.Response.Headers.IsReadOnly); 5131Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly);
Http3\Http3ConnectionTests.cs (1)
643public bool IsReadOnly => _innerHeaders.IsReadOnly;
Http3\Http3StreamTests.cs (29)
1148Assert.True(context.Response.Headers.IsReadOnly); 1149Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1197Assert.True(context.Response.Headers.IsReadOnly); 1198Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1251Assert.False(context.Response.Headers.IsReadOnly); 1252Assert.False(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1294Assert.True(context.Response.Headers.IsReadOnly); 1299Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1347Assert.True(context.Response.Headers.IsReadOnly); 1348Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1396Assert.True(context.Response.Headers.IsReadOnly); 1400Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1492Assert.False(context.Response.Headers.IsReadOnly); 1498Assert.True(context.Response.Headers.IsReadOnly); 1500Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1549Assert.True(context.Response.Headers.IsReadOnly); 1555Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1605Assert.True(context.Response.Headers.IsReadOnly); 1612Assert.False(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1663Assert.True(context.Response.Headers.IsReadOnly); 1670Assert.False(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1719Assert.True(context.Response.Headers.IsReadOnly); 1725Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1780Assert.True(context.Response.Headers.IsReadOnly); 1786Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1842Assert.True(context.Response.Headers.IsReadOnly); 1848Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly); 1907Assert.True(context.Response.Headers.IsReadOnly); 1913Assert.True(context.Features.Get<IHttpResponseTrailersFeature>().Trailers.IsReadOnly);
Microsoft.AspNetCore (2)
WebApplication.cs (2)
244if (addresses.IsReadOnly) 246throw new InvalidOperationException($"Changing the URL is not supported because {nameof(IServerAddressesFeature.Addresses)} {nameof(ICollection<string>.IsReadOnly)}.");
Microsoft.AspNetCore.Connections.Abstractions (1)
ConnectionItems.cs (1)
111get { return Items.IsReadOnly; }
Microsoft.AspNetCore.Hosting (2)
GenericHost\GenericWebHostService.cs (1)
68if (addresses != null && !addresses.IsReadOnly && addresses.Count == 0)
Internal\WebHost.cs (1)
263if (addresses != null && !addresses.IsReadOnly && addresses.Count == 0)
Microsoft.AspNetCore.Http (1)
Internal\ItemsDictionary.cs (1)
113bool ICollection<KeyValuePair<object, object?>>.IsReadOnly => _items?.IsReadOnly ?? false;
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
RouteValueDictionaryTests.cs (1)
432var result = ((ICollection<KeyValuePair<string, object?>>)dict).IsReadOnly;
Microsoft.AspNetCore.JsonPatch.Tests (2)
TestObjectModels\DynamicTestObject.cs (1)
21public bool IsReadOnly => ((IDictionary<string, object>)_dictionary).IsReadOnly;
WriteOnceDynamicTestObject.cs (1)
35public bool IsReadOnly => ((IDictionary<string, object>)_dictionary).IsReadOnly;
Microsoft.AspNetCore.Mvc.Abstractions (1)
ModelBinding\Validation\ValidationStateDictionary.cs (1)
58public bool IsReadOnly => ((IDictionary<object, ValidationStateEntry>)_inner).IsReadOnly;
Microsoft.AspNetCore.Mvc.Core (4)
ModelBinding\Binders\CollectionModelBinder.cs (1)
474if (sourceCollection != null && !targetCollection.IsReadOnly)
ModelBinding\ModelBindingHelper.cs (2)
483if (model is ICollection<T> collection && !collection.IsReadOnly) 566if (model is ICollection<T> collection && !collection.IsReadOnly)
ModelBinding\PropertyValueSetter.cs (1)
61if (source is IEnumerable<TElement> sourceCollection && !targetCollection.IsReadOnly)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
TempDataDictionary.cs (1)
80return ((ICollection<KeyValuePair<string, object?>>)_data).IsReadOnly;
ViewDataDictionary.cs (1)
328get { return _data.IsReadOnly; }
Microsoft.AspNetCore.Owin (2)
DictionaryStringArrayWrapper.cs (1)
34bool ICollection<KeyValuePair<string, string[]>>.IsReadOnly => Inner.IsReadOnly;
DictionaryStringValuesWrapper.cs (1)
79bool ICollection<KeyValuePair<string, StringValues>>.IsReadOnly => Inner.IsReadOnly;
Microsoft.AspNetCore.Razor.Test (1)
TagHelpers\TagHelperAttributeListTest.cs (1)
222var isReadOnly = attributes.IsReadOnly;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
ResponseBodyTests.cs (2)
27Assert.True(httpContext.Response.Headers.IsReadOnly); 56Assert.True(httpContext.Response.Headers.IsReadOnly);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Http1\Http1ConnectionTests.cs (1)
1200public bool IsReadOnly => _innerHeaders.IsReadOnly;
HttpRequestHeadersTests.cs (1)
26Assert.False(headers.IsReadOnly);
HttpResponseHeadersTests.cs (1)
45Assert.False(headers.IsReadOnly);
Microsoft.AspNetCore.Shared.Tests (1)
AdaptiveCapacityDictionaryTests.cs (1)
94var result = ((ICollection<KeyValuePair<string, object?>>)dict).IsReadOnly;
Microsoft.Build (1)
CopyOnWriteDictionary.cs (1)
129public bool IsReadOnly => ((IDictionary<string, V>)_backing).IsReadOnly;
Microsoft.Build.Framework (1)
ICollectionCalls`1.cs (1)
22=> collection.IsReadOnly;
Microsoft.Build.Tasks.Core (1)
CopyOnWriteDictionary.cs (1)
129public bool IsReadOnly => ((IDictionary<string, V>)_backing).IsReadOnly;
Microsoft.Build.Utilities.Core (1)
CopyOnWriteDictionary.cs (1)
129public bool IsReadOnly => ((IDictionary<string, V>)_backing).IsReadOnly;
Microsoft.Extensions.Http (1)
DependencyInjection\DefaultHttpClientBuilderServiceCollection.cs (1)
65public bool IsReadOnly => _services.IsReadOnly;
Microsoft.Interop.SourceGeneration (1)
ValueEqualityImmutableDictionary.cs (1)
50public bool IsReadOnly => ((ICollection<KeyValuePair<T, U>>)Map).IsReadOnly;
Microsoft.Net.Http.Headers (1)
ObjectCollection.cs (1)
56public bool IsReadOnly => ((ICollection<T>)this).IsReadOnly;
Microsoft.Net.Http.Headers.Tests (2)
MediaTypeHeaderValueTest.cs (2)
181Assert.False(mediaType0.Parameters.IsReadOnly); 182Assert.True(mediaType1.Parameters.IsReadOnly);
MSBuild (1)
CopyOnWriteDictionary.cs (1)
129public bool IsReadOnly => ((IDictionary<string, V>)_backing).IsReadOnly;
MSBuildTaskHost (1)
CopyOnWriteDictionary.cs (1)
129public bool IsReadOnly => ((IDictionary<string, V>)_backing).IsReadOnly;
PresentationCore (23)
System\Windows\FreezableCollection.cs (1)
437return ((ICollection<T>)this).IsReadOnly;
System\Windows\Generated\TextDecorationCollection.cs (1)
338return ((ICollection<TextDecoration>)this).IsReadOnly;
System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
348return ((ICollection<Timeline>)this).IsReadOnly;
System\Windows\Media\CultureSpecificStringDictionary.cs (1)
88get { return _innerDictionary.IsReadOnly; }
System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
344return ((ICollection<BitmapEffect>)this).IsReadOnly;
System\Windows\Media\Generated\DoubleCollection.cs (1)
297return ((ICollection<double>)this).IsReadOnly;
System\Windows\Media\Generated\DrawingCollection.cs (1)
360return ((ICollection<Drawing>)this).IsReadOnly;
System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
346return ((ICollection<GeneralTransform>)this).IsReadOnly;
System\Windows\Media\Generated\GeometryCollection.cs (1)
360return ((ICollection<Geometry>)this).IsReadOnly;
System\Windows\Media\Generated\GradientStopCollection.cs (1)
346return ((ICollection<GradientStop>)this).IsReadOnly;
System\Windows\Media\Generated\Int32Collection.cs (1)
297return ((ICollection<int>)this).IsReadOnly;
System\Windows\Media\Generated\PathFigureCollection.cs (1)
347return ((ICollection<PathFigure>)this).IsReadOnly;
System\Windows\Media\Generated\PathSegmentCollection.cs (1)
346return ((ICollection<PathSegment>)this).IsReadOnly;
System\Windows\Media\Generated\PointCollection.cs (1)
297return ((ICollection<Point>)this).IsReadOnly;
System\Windows\Media\Generated\TextEffectCollection.cs (1)
346return ((ICollection<TextEffect>)this).IsReadOnly;
System\Windows\Media\Generated\TransformCollection.cs (1)
360return ((ICollection<Transform>)this).IsReadOnly;
System\Windows\Media\Generated\VectorCollection.cs (1)
297return ((ICollection<Vector>)this).IsReadOnly;
System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
342return ((ICollection<GeneralTransform3D>)this).IsReadOnly;
System\Windows\Media3D\Generated\MaterialCollection.cs (1)
356return ((ICollection<Material>)this).IsReadOnly;
System\Windows\Media3D\Generated\Model3DCollection.cs (1)
356return ((ICollection<Model3D>)this).IsReadOnly;
System\Windows\Media3D\Generated\Point3DCollection.cs (1)
293return ((ICollection<Point3D>)this).IsReadOnly;
System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
356return ((ICollection<Transform3D>)this).IsReadOnly;
System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
293return ((ICollection<Vector3D>)this).IsReadOnly;
PresentationFramework (5)
MS\Internal\Documents\ContentElementCollection.cs (1)
551/// <see cref="ICollection&lt;T&gt;.IsReadOnly"/>
System\Windows\Controls\CustomDictionarySources.cs (1)
205return ((ICollection<Uri>)_uriList).IsReadOnly;
System\Windows\Controls\SelectedCellsChangedEventArgs.cs (2)
51Debug.Assert(_addedCells.IsReadOnly, "_addedCells should have ended up as read-only."); 52Debug.Assert(_removedCells.IsReadOnly, "_removedCells should have ended up as read-only.");
System\Windows\Documents\TableColumnCollection.cs (1)
369/// <see cref="ICollection&lt;T&gt;.IsReadOnly"/>
System.ComponentModel.Composition (2)
Microsoft\Internal\Collections\CollectionServices.CollectionOfObject.cs (1)
128get { return _collectionOfT.IsReadOnly; }
System\ComponentModel\Composition\ReflectionModel\ImportingMember.cs (1)
189isReadOnly = collection.IsReadOnly;
System.Composition.Hosting (1)
System\Composition\Hosting\Core\CycleBreakingMetadataDictionary.cs (1)
102get { return ActualMetadata.IsReadOnly; }
System.Net.Http (1)
System\Net\Http\HttpRequestOptions.cs (1)
36bool ICollection<KeyValuePair<string, object?>>.IsReadOnly => ((IDictionary<string, object?>)Options).IsReadOnly;
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Collections\ObjectModel\Collection.cs (12)
41if (items.IsReadOnly) 57if (items.IsReadOnly) 68if (items.IsReadOnly) 98if (items.IsReadOnly) 113if (items.IsReadOnly) 126if (items.IsReadOnly) 159bool ICollection<T>.IsReadOnly => items.IsReadOnly; 263bool IList.IsReadOnly => items.IsReadOnly; 277return items.IsReadOnly; 283if (items.IsReadOnly) 325if (items.IsReadOnly) 347if (items.IsReadOnly)
System.Private.Xml (3)
System\Xml\Xsl\XPath\XPathBuilder.cs (1)
561Debug.Assert(!args.IsReadOnly, "Writable collection expected");
System\Xml\Xsl\Xslt\QilGenerator.cs (1)
2550if (args == null || args.IsReadOnly)
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (1)
103Debug.Assert(!args.IsReadOnly, "Writable collection expected");
System.Text.Json (4)
System\Text\Json\Serialization\Converters\Collection\ICollectionOfTConverter.cs (1)
33if (returnValue.IsReadOnly)
System\Text\Json\Serialization\Converters\Collection\IDictionaryOfTKeyTValueConverter.cs (1)
35if (returnValue.IsReadOnly)
System\Text\Json\Serialization\Converters\Collection\IListOfTConverter.cs (1)
33if (returnValue.IsReadOnly)
System\Text\Json\Serialization\Converters\Collection\ISetOfTConverter.cs (1)
30if (returnValue.IsReadOnly)