2 writes to DeclaringTypeInfo
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
320value.DeclaringTypeInfo = this; 332options.DeclaringTypeInfo = this;
7 references to DeclaringTypeInfo
System.Text.Json (7)
System\Text\Json\Serialization\Metadata\JsonPolymorphismOptions.cs (3)
85private void VerifyMutable() => DeclaringTypeInfo?.VerifyMutable(); 125public override bool IsReadOnly => _parent.DeclaringTypeInfo?.IsReadOnly == true; 126protected override void OnCollectionModifying() => _parent.DeclaringTypeInfo?.VerifyMutable();
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (4)
315if (value.DeclaringTypeInfo is not null && value.DeclaringTypeInfo != this) 330Debug.Assert(options.DeclaringTypeInfo is null || options.DeclaringTypeInfo == this);