2 writes to ParentTypeInfo
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (2)
300ParentTypeInfo = declaringTypeInfo; // null parentTypeInfo means it's not tied yet 847ParentTypeInfo = parent;
17 references to ParentTypeInfo
System.Text.Json (17)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (14)
324ParentTypeInfo?.VerifyMutable(); 331Debug.Assert(ParentTypeInfo != null); 465Debug.Assert(ParentTypeInfo != null, "We should have ensured parent is assigned in JsonTypeInfo"); 466Debug.Assert(!ParentTypeInfo.IsConfigured); 468JsonNumberHandling? declaringTypeNumberHandling = ParentTypeInfo.NumberHandling; 493Debug.Assert(ParentTypeInfo != null, "We should have ensured parent is assigned in JsonTypeInfo"); 502JsonNumberHandling? handling = NumberHandling ?? ParentTypeInfo.NumberHandling ?? _jsonTypeInfo.NumberHandling; 521Debug.Assert(ParentTypeInfo != null, "We should have ensured parent is assigned in JsonTypeInfo"); 530ParentTypeInfo.PreferredPropertyObjectCreationHandling 531?? (ParentTypeInfo.DetermineUsesParameterizedConstructor() 540!ParentTypeInfo.SupportsPolymorphicDeserialization && 579if (ParentTypeInfo.DetermineUsesParameterizedConstructor()) 845if (ParentTypeInfo == null) 849else if (ParentTypeInfo != parent)
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1062Debug.Assert(property.ParentTypeInfo == this);
System\Text\Json\ThrowHelper.Serialization.cs (2)
761Debug.Assert(propertyInfo.ParentTypeInfo != null, "We should not throw this exception when ParentTypeInfo is null"); 762throw new InvalidOperationException(SR.Format(SR.JsonPropertyInfoBoundToDifferentParent, propertyInfo.Name, propertyInfo.ParentTypeInfo.Type.FullName));