2 writes to DeclaringTypeInfo
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
325value.DeclaringTypeInfo = this; 1245options.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)
320if (value.DeclaringTypeInfo != null && value.DeclaringTypeInfo != this)