2 writes to AssociatedParameter
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (1)
120AssociatedParameter = new JsonParameterInfo<T>(parameterInfoValues, this);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.cs (1)
113propertyInfo.AssociatedParameter = null;
8 references to AssociatedParameter
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonSchemaCreateContext.cs (1)
76_exporterContext.PropertyInfo?.AssociatedParameter?.AttributeProvider;
Microsoft.Extensions.AI.Abstractions.Tests (1)
test\Shared\JsonSchemaExporter\TestTypes.cs (1)
1305GetAttrs(ctx.PropertyInfo?.AssociatedParameter?.AttributeProvider) ??
System.Text.Json (6)
System\Text\Json\Schema\JsonSchemaExporter.cs (2)
245if (property.AssociatedParameter is { HasDefaultValue: true } parameterInfo) 257if (property is { IsRequired: true } or { AssociatedParameter.IsRequiredParameter: true })
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
618jsonParameterInfo = jsonPropertyInfo.AssociatedParameter;
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
452!(AssociatedParameter?.IsRequiredParameter is true &&
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
118Debug.Assert(AssociatedParameter is null); 127_isRequired |= AssociatedParameter.IsRequiredParameter;