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