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