33 references to Object
Microsoft.AspNetCore.OpenApi (1)
Services\Schemas\OpenApiSchemaService.cs (1)
42
if (jsonTypeInfo.Kind != JsonTypeInfoKind.
Object
)
Microsoft.Extensions.AI.Abstractions (2)
src\Shared\JsonSchemaExporter\JsonSchemaExporter.cs (1)
239
case JsonTypeInfoKind.
Object
:
src\Shared\JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (1)
148
Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.
Object
, "Should only be passed object JSON kinds.");
Shared (2)
JsonSchemaExporter\JsonSchemaExporter.cs (1)
239
case JsonTypeInfoKind.
Object
:
JsonSchemaExporter\JsonSchemaExporter.ReflectionHelpers.cs (1)
148
Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.
Object
, "Should only be passed object JSON kinds.");
System.Text.Json (28)
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 (2)
72
if (typeInfo is { Kind: JsonTypeInfoKind.
Object
, IsNullable: false })
99
Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.
Object
);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (2)
118
Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.
Object
);
133
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
"/>.
463
/// of kind <see cref="JsonTypeInfoKind.
Object
"/>.
527
/// Unmapped member handling only supported for <see cref="JsonTypeInfoKind.
Object
"/>.
543
if (Kind != JsonTypeInfoKind.
Object
)
571
/// Unmapped member handling only supported for <see cref="JsonTypeInfoKind.
Object
"/>.
587
if (Kind != JsonTypeInfoKind.
Object
)
756
if (Kind == JsonTypeInfoKind.
Object
)
1067
Debug.Assert(Kind == JsonTypeInfoKind.
Object
);
1184
Debug.Assert(Kind == JsonTypeInfoKind.
Object
);
1254
if (Kind is JsonTypeInfoKind.
Object
or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary)
1344
case ConverterStrategy.Object: return JsonTypeInfoKind.
Object
;
1366
public override bool IsReadOnly => _jsonTypeInfo._properties == this && _jsonTypeInfo.IsReadOnly || _jsonTypeInfo.Kind != JsonTypeInfoKind.
Object
;
1374
if (_jsonTypeInfo.Kind != JsonTypeInfoKind.
Object
)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
98
if (derivedTypeInfo.JsonTypeInfo.Kind is JsonTypeInfoKind.
Object
)