13 references to Enumerable
Microsoft.AspNetCore.OpenApi (1)
Extensions\JsonTypeInfoExtensions.cs (1)
72
if (jsonTypeInfo is JsonTypeInfo { Kind: JsonTypeInfoKind.
Enumerable
} || type.IsArray)
Microsoft.Extensions.AI.Abstractions (3)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
345
case JsonTypeInfoKind.
Enumerable
:
src\Shared\JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (1)
36
Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.
Enumerable
or JsonTypeInfoKind.Dictionary, "TypeInfo must be of collection type");
Utilities\AIJsonUtilities.Schema.Create.cs (1)
294
if (ctx.TypeInfo.Kind is JsonTypeInfoKind.
Enumerable
&& !objSchema.ContainsKey(ItemsPropertyName))
System.Text.Json (9)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
262
case JsonTypeInfoKind.
Enumerable
:
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (6)
128
if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.
Enumerable
or JsonTypeInfoKind.Dictionary))
158
if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.
Enumerable
or JsonTypeInfoKind.Dictionary))
188
if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.
Enumerable
or JsonTypeInfoKind.Dictionary))
224
if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.
Enumerable
or JsonTypeInfoKind.Dictionary))
1255
if (Kind is JsonTypeInfoKind.Object or JsonTypeInfoKind.
Enumerable
or JsonTypeInfoKind.Dictionary)
1346
case ConverterStrategy.Enumerable: return JsonTypeInfoKind.
Enumerable
;
System\Text\Json\Serialization\ReadStackFrame.cs (1)
127
return JsonTypeInfo.Kind is JsonTypeInfoKind.
Enumerable
;
System\Text\Json\ThrowHelper.Serialization.cs (1)
672
else if (typeInfo.Kind is JsonTypeInfoKind.
Enumerable
or JsonTypeInfoKind.Dictionary)