1 write to IsReadOnly
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
345
public void MakeReadOnly() =>
IsReadOnly
= true;
13 references to IsReadOnly
Shared (1)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
104
Debug.Assert(typeInfo.
IsReadOnly
, "The specified contract must have been made read-only.");
System.Text.Json (12)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (2)
98
Debug.Assert(!typeInfo.
IsReadOnly
);
147
Debug.Assert(!typeInfo.
IsReadOnly
);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (1)
122
Debug.Assert(!typeInfo.
IsReadOnly
);
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (1)
97
public override bool IsReadOnly => _parent.DeclaringTypeInfo?.
IsReadOnly
== true;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (7)
278
Debug.Assert(!
IsReadOnly
);
400
Debug.Assert(!
IsReadOnly
);
426
Debug.Assert(!
IsReadOnly
);
658
Debug.Assert(!
IsReadOnly
);
672
if (
IsReadOnly
)
743
Debug.Assert(
IsReadOnly
);
818
Debug.Assert(
IsReadOnly
);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.cs (1)
132
Debug.Assert(!
IsReadOnly
, "We should not mutate read-only JsonTypeInfo");