2 writes to AssociatedParameter
System.Text.Json (2)
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (1)
120
AssociatedParameter
= new JsonParameterInfo<T>(parameterInfoValues, this);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.cs (1)
113
propertyInfo.
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)
1305
GetAttrs(ctx.PropertyInfo?.
AssociatedParameter
?.AttributeProvider) ??
System.Text.Json (6)
System\Text\Json\Schema\JsonSchemaExporter.cs (2)
245
if (property.
AssociatedParameter
is { HasDefaultValue: true } parameterInfo)
257
if (property is { IsRequired: true } or {
AssociatedParameter
.IsRequiredParameter: true })
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
618
jsonParameterInfo = jsonPropertyInfo.
AssociatedParameter
;
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
452
!(
AssociatedParameter
?.IsRequiredParameter is true &&
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
118
Debug.Assert(
AssociatedParameter
is null);
127
_isRequired |=
AssociatedParameter
.IsRequiredParameter;