1 write to DeclaringTypeInfo
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
323value.DeclaringTypeInfo = this;
5 references to DeclaringTypeInfo
System.Text.Json (5)
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (3)
84private void VerifyMutable() => DeclaringTypeInfo?.VerifyMutable(); 97public override bool IsReadOnly => _parent.DeclaringTypeInfo?.IsReadOnly == true; 98protected override void OnCollectionModifying() => _parent.DeclaringTypeInfo?.VerifyMutable();
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
318if (value.DeclaringTypeInfo != null && value.DeclaringTypeInfo != this)