1 write to PropertyType
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
379PropertyType = propertyType;
29 references to PropertyType
Microsoft.AspNetCore.OpenApi (3)
Extensions\JsonNodeSchemaExtensions.cs (1)
453if (propertyInfo.PropertyType != typeof(object) && (propertyInfo.IsGetNullable || propertyInfo.IsSetNullable))
Services\Schemas\OpenApiSchemaService.cs (2)
103if (jsonPropertyInfo.PropertyType == jsonPropertyInfo.DeclaringType) 211await InnerApplySchemaTransformersAsync(propertySchema, _jsonSerializerOptions.GetTypeInfo(propertyInfo.PropertyType), propertyInfo, context, transformer, cancellationToken);
System.Text.Json (26)
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (3)
117Type underlyingIDictionaryType = jsonPropertyInfo.PropertyType.GetCompatibleGenericInterface(typeof(IDictionary<,>))!; 135if (jsonPropertyInfo.PropertyType.FullName == JsonTypeInfo.JsonObjectTypeName) 141ThrowHelper.ThrowNotSupportedException_SerializationNotSupported(jsonPropertyInfo.PropertyType);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
281propertyInfo.PropertyType == ignoredMember.PropertyType;
System\Text\Json\Serialization\Metadata\JsonParameterInfo.cs (2)
17Debug.Assert(matchingProperty.PropertyType == parameterInfoValues.ParameterType); 40public Type ParameterType => MatchingProperty.PropertyType;
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (9)
236/// The current <see cref="PropertyType"/> is not a reference type or <see cref="Nullable{T}"/>. 272/// The current <see cref="PropertyType"/> is not a reference type or <see cref="Nullable{T}"/>. 311/// The current <see cref="PropertyType"/> is not valid for use with extension data. 324if (value && !JsonTypeInfo.IsValidExtensionDataProperty(PropertyType)) 430_jsonTypeInfo ??= Options.GetTypeInfoInternal(PropertyType); 639(!PropertyType.IsValueType || Set != null) && 657if (PropertyType.IsValueType && Set == null) 705potentialNumberType = PropertyType; 1076private string DebuggerDisplay => $"Name = {Name}, PropertyType = {PropertyType}";
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (5)
152Options.ExpandConverterFactory(CustomConverter, PropertyType) // Expand any property-level custom converters. 317T? fastValue = EffectiveConverter.Read(ref reader, PropertyType, Options); 337success = EffectiveConverter.TryRead(ref reader, PropertyType, Options, ref state, out T? value, out bool populatedValue); 387value = EffectiveConverter.Read(ref reader, PropertyType, Options); 392success = EffectiveConverter.TryRead(ref reader, PropertyType, Options, ref state, out T? typedValue, out _);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1041Debug.Assert(jsonPropertyInfo.PropertyType == propertyType);
System\Text\Json\ThrowHelper.Serialization.cs (5)
481Type propertyType = state.Current.JsonPropertyInfo?.PropertyType ?? state.Current.JsonTypeInfo.Type; 551throw new InvalidOperationException(SR.Format(SR.SerializationDataExtensionPropertyInvalid, jsonPropertyInfo.PropertyType, jsonPropertyInfo.MemberName)); 557throw new InvalidOperationException(SR.Format(SR.PropertyTypeNotNullable, jsonPropertyInfo.PropertyType)); 575Type propertyType = state.Current.JsonPropertyInfo?.PropertyType ?? state.Current.JsonTypeInfo.Type; 603Type propertyType = state.Current.JsonPropertyInfo?.PropertyType ?? state.Current.JsonTypeInfo.Type;