33 references to Object
Microsoft.AspNetCore.OpenApi (1)
Services\Schemas\OpenApiSchemaService.cs (1)
42if (jsonTypeInfo.Kind != JsonTypeInfoKind.Object)
Microsoft.Extensions.AI.Abstractions (2)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
239case JsonTypeInfoKind.Object:
src\Shared\JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (1)
148Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.Object, "Should only be passed object JSON kinds.");
Shared (2)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
239case JsonTypeInfoKind.Object:
JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (1)
148Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.Object, "Should only be passed object JSON kinds.");
System.Text.Json (28)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
196case JsonTypeInfoKind.Object:
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
620Debug.Assert(state.Current.JsonTypeInfo.Kind is JsonTypeInfoKind.Object);
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (2)
72if (typeInfo is { Kind: JsonTypeInfoKind.Object, IsNullable: false }) 99Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.Object);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (2)
118Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.Object); 133Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.Object);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (21)
115/// Serialization callbacks are only supported for <see cref="JsonTypeInfoKind.Object"/> metadata. 128if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary)) 145/// Serialization callbacks are only supported for <see cref="JsonTypeInfoKind.Object"/> metadata. 158if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary)) 175/// Serialization callbacks are only supported for <see cref="JsonTypeInfoKind.Object"/> metadata. 188if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary)) 211/// Serialization callbacks are only supported for <see cref="JsonTypeInfoKind.Object"/> metadata. 224if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary)) 237/// Property is only applicable to metadata of kind <see cref="JsonTypeInfoKind.Object"/>. 463/// of kind <see cref="JsonTypeInfoKind.Object"/>. 527/// Unmapped member handling only supported for <see cref="JsonTypeInfoKind.Object"/>. 543if (Kind != JsonTypeInfoKind.Object) 571/// Unmapped member handling only supported for <see cref="JsonTypeInfoKind.Object"/>. 587if (Kind != JsonTypeInfoKind.Object) 756if (Kind == JsonTypeInfoKind.Object) 1067Debug.Assert(Kind == JsonTypeInfoKind.Object); 1184Debug.Assert(Kind == JsonTypeInfoKind.Object); 1254if (Kind is JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary) 1344case ConverterStrategy.Object: return JsonTypeInfoKind.Object; 1366public override bool IsReadOnly => _jsonTypeInfo._properties == this && _jsonTypeInfo.IsReadOnly || _jsonTypeInfo.Kind != JsonTypeInfoKind.Object; 1374if (_jsonTypeInfo.Kind != JsonTypeInfoKind.Object)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
98if (derivedTypeInfo.JsonTypeInfo.Kind is JsonTypeInfoKind.Object)