2 writes to DeclaringTypeInfo
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
325value.DeclaringTypeInfo = this; 337options.DeclaringTypeInfo = this;
7 references to DeclaringTypeInfo
System.Text.Json (7)
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (3)
88private void VerifyMutable() => DeclaringTypeInfo?.VerifyMutable(); 128public override bool IsReadOnly => _parent.DeclaringTypeInfo?.IsReadOnly == true; 129protected override void OnCollectionModifying() => _parent.DeclaringTypeInfo?.VerifyMutable();
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (4)
320if (value.DeclaringTypeInfo != null && value.DeclaringTypeInfo != this) 335Debug.Assert(options.DeclaringTypeInfo is null || options.DeclaringTypeInfo == this);