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;
12 references to AssociatedParameter
Microsoft.Extensions.AI.Abstractions (2)
Utilities\AIJsonSchemaCreateContext.cs (1)
67_exporterContext.PropertyInfo?.AssociatedParameter?.AttributeProvider;
Utilities\AIJsonUtilities.Schema.Create.cs (1)
574property.AssociatedParameter?.AttributeProvider?.GetCustomAttributes(typeof(RequiredAttribute), inherit: true) is { Length: > 0 })
System.Text.Json (10)
System\Text\Json\Schema\JsonSchemaExporter.cs (4)
256if (property.AssociatedParameter is { HasDefaultValue: true } parameterInfo) 268if (property is { IsRequired: true } or { AssociatedParameter.IsRequiredParameter: true }) 455if (propertyInfo.AssociatedParameter is not null) 457return propertyInfo.AssociatedParameter.IsNullable;
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
637jsonParameterInfo = jsonPropertyInfo.AssociatedParameter;
System\Text\Json\Serialization\Metadata\JsonPropertyInfo.cs (1)
447!(AssociatedParameter?.IsRequiredParameter is true &&
System\Text\Json\Serialization\Metadata\JsonPropertyInfoOfT.cs (2)
118Debug.Assert(AssociatedParameter is null); 127_isRequired |= AssociatedParameter.IsRequiredParameter;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (2)
1628JsonParameterInfo? parameterInfo = propertyInfo.AssociatedParameter; 1649if (ExtensionDataProperty is { AssociatedParameter: not null })