30 references to Object
Microsoft.Extensions.AI.Abstractions (1)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
554if (ctx.TypeInfo.Kind is JsonTypeInfoKind.Object &&
System.Text.Json (29)
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 (3)
42&& typeInfo.Kind is JsonTypeInfoKind.Object) 55if (typeInfo is { Kind: JsonTypeInfoKind.Object, IsNullable: false }) 120Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.Object);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (2)
150Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.Object); 165Debug.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"/>. 718/// of kind <see cref="JsonTypeInfoKind.Object"/>. 782/// Unmapped member handling only supported for <see cref="JsonTypeInfoKind.Object"/>. 798if (Kind != JsonTypeInfoKind.Object) 826/// Unmapped member handling only supported for <see cref="JsonTypeInfoKind.Object"/>. 842if (Kind != JsonTypeInfoKind.Object) 1012if (Kind == JsonTypeInfoKind.Object) 1546Debug.Assert(Kind == JsonTypeInfoKind.Object); 1658Debug.Assert(Kind == JsonTypeInfoKind.Object); 1716if (Kind is JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary) 1808case ConverterStrategy.Object: return JsonTypeInfoKind.Object; 1834public override bool IsReadOnly => _jsonTypeInfo._properties == this && _jsonTypeInfo.IsReadOnly || _jsonTypeInfo.Kind != JsonTypeInfoKind.Object; 1842if (_jsonTypeInfo.Kind != JsonTypeInfoKind.Object)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
98if (derivedTypeInfo.JsonTypeInfo.Kind is JsonTypeInfoKind.Object)