13 references to IsReadOnly
Microsoft.AspNetCore.Http.Results (1)
JsonHttpResultOfT.cs (1)
39if (jsonSerializerOptions is not null && !jsonSerializerOptions.IsReadOnly)
System.Text.Json (12)
System\Text\Json\Serialization\JsonSerializerContext.cs (1)
42Debug.Assert(!options.IsReadOnly);
System\Text\Json\Serialization\JsonSerializerOptions.Caching.cs (5)
27Debug.Assert(IsReadOnly); 112Debug.Assert(!fallBackToNearestAncestorType || IsReadOnly, "ancestor resolution should only be invoked in read-only options."); 117if (IsReadOnly) 193Debug.Assert(IsReadOnly); 407Debug.Assert(options.IsReadOnly, "Cannot create caching contexts for mutable JsonSerializerOptions instances");
System\Text\Json\Serialization\JsonSerializerOptions.cs (5)
847Debug.Assert(IsReadOnly); 918Debug.Assert(IsReadOnly); 1084public override bool IsReadOnly => _options.IsReadOnly; 1098public override bool IsReadOnly => _options.IsReadOnly; 1145private string DebuggerDisplay => $"TypeInfoResolver = {(TypeInfoResolver?.ToString() ?? "<null>")}, IsReadOnly = {IsReadOnly}";
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
742Debug.Assert(Options.IsReadOnly);