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