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