1 write to PropertyType
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
379
PropertyType
= propertyType;
31 references to PropertyType
Microsoft.AspNetCore.OpenApi (3)
Extensions\JsonNodeSchemaExtensions.cs (1)
453
if (propertyInfo.
PropertyType
!= typeof(object) && (propertyInfo.IsGetNullable || propertyInfo.IsSetNullable))
Services\Schemas\OpenApiSchemaService.cs (2)
103
if (jsonPropertyInfo.
PropertyType
== jsonPropertyInfo.DeclaringType)
211
await InnerApplySchemaTransformersAsync(propertySchema, _jsonSerializerOptions.GetTypeInfo(propertyInfo.
PropertyType
), propertyInfo, context, transformer, cancellationToken);
Shared (2)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
273
JsonTypeInfo propertyTypeInfo = typeInfo.Options.GetTypeInfo(property.
PropertyType
);
JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (1)
168
return prop => dict.TryGetValue(new(prop.Name, prop.
PropertyType
), out ParameterInfo? parameter) ? parameter : null;
System.Text.Json (26)
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (3)
117
Type underlyingIDictionaryType = jsonPropertyInfo.
PropertyType
.GetCompatibleGenericInterface(typeof(IDictionary<,>))!;
135
if (jsonPropertyInfo.
PropertyType
.FullName == JsonTypeInfo.JsonObjectTypeName)
141
ThrowHelper.ThrowNotSupportedException_SerializationNotSupported(jsonPropertyInfo.
PropertyType
);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (1)
281
propertyInfo.PropertyType == ignoredMember.
PropertyType
;
System\Text\Json\Serialization\Metadata\JsonParameterInfo.cs (2)
17
Debug.Assert(matchingProperty.
PropertyType
== parameterInfoValues.ParameterType);
40
public 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.
324
if (value && !JsonTypeInfo.IsValidExtensionDataProperty(
PropertyType
))
430
_jsonTypeInfo ??= Options.GetTypeInfoInternal(
PropertyType
);
639
(!
PropertyType
.IsValueType || Set != null) &&
657
if (
PropertyType
.IsValueType && Set == null)
705
potentialNumberType =
PropertyType
;
1076
private string DebuggerDisplay => $"Name = {Name}, PropertyType = {
PropertyType
}";
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (5)
152
Options.ExpandConverterFactory(CustomConverter,
PropertyType
) // Expand any property-level custom converters.
317
T? fastValue = EffectiveConverter.Read(ref reader,
PropertyType
, Options);
337
success = EffectiveConverter.TryRead(ref reader,
PropertyType
, Options, ref state, out T? value, out bool populatedValue);
387
value = EffectiveConverter.Read(ref reader,
PropertyType
, Options);
392
success = EffectiveConverter.TryRead(ref reader,
PropertyType
, Options, ref state, out T? typedValue, out _);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
1041
Debug.Assert(jsonPropertyInfo.
PropertyType
== propertyType);
System\Text\Json\ThrowHelper.Serialization.cs (5)
481
Type propertyType = state.Current.JsonPropertyInfo?.
PropertyType
?? state.Current.JsonTypeInfo.Type;
551
throw new InvalidOperationException(SR.Format(SR.SerializationDataExtensionPropertyInvalid, jsonPropertyInfo.
PropertyType
, jsonPropertyInfo.MemberName));
557
throw new InvalidOperationException(SR.Format(SR.PropertyTypeNotNullable, jsonPropertyInfo.
PropertyType
));
575
Type propertyType = state.Current.JsonPropertyInfo?.
PropertyType
?? state.Current.JsonTypeInfo.Type;
603
Type propertyType = state.Current.JsonPropertyInfo?.
PropertyType
?? state.Current.JsonTypeInfo.Type;