1 write to BaseType
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
26BaseType = baseType;
19 references to BaseType
System.Text.Json (19)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (19)
29if (!IsSupportedPolymorphicBaseType(BaseType)) 31ThrowHelper.ThrowInvalidOperationException_TypeDoesNotSupportPolymorphism(BaseType); 39if (!IsSupportedDerivedType(BaseType, derivedType) || 42ThrowHelper.ThrowInvalidOperationException_DerivedTypeNotSupported(BaseType, derivedType); 50ThrowHelper.ThrowInvalidOperationException_DerivedTypeIsAlreadySpecified(BaseType, derivedType); 57ThrowHelper.ThrowInvalidOperationException_TypeDicriminatorIdIsAlreadySpecified(BaseType, typeDiscriminator); 68ThrowHelper.ThrowInvalidOperationException_PolymorphicTypeConfigurationDoesNotSpecifyDerivedTypes(BaseType); 77ThrowHelper.ThrowNotSupportedException_BaseConverterDoesNotSupportMetadata(BaseType); 121Debug.Assert(BaseType.IsAssignableFrom(runtimeType)); 135_typeToDiscriminatorId.TryGetValue(BaseType, out result); 141if (runtimeType != BaseType) 143ThrowHelper.ThrowNotSupportedException_RuntimeTypeNotSupported(BaseType, runtimeType); 202Debug.Assert(BaseType.IsAssignableFrom(type)); 205if (type == BaseType) 213for (Type? candidate = type.BaseType; BaseType.IsAssignableFrom(candidate); candidate = candidate.BaseType) 225if (BaseType.IsInterface) 229if (interfaceTy != BaseType && BaseType.IsAssignableFrom(interfaceTy) && 239ThrowHelper.ThrowNotSupportedException_RuntimeTypeDiamondAmbiguity(BaseType, type, result.JsonTypeInfo.Type, interfaceResult.JsonTypeInfo.Type);