25 references to Object
Microsoft.AspNetCore.OpenApi (1)
Services\Schemas\OpenApiSchemaService.cs (1)
42if (jsonTypeInfo.Kind != JsonTypeInfoKind.Object)
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 (22)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
206case JsonTypeInfoKind.Object:
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
604Debug.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)
121Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.Object); 136Debug.Assert(typeInfo.Kind is JsonTypeInfoKind.Object);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (15)
113/// Serialization callbacks are only supported for <see cref="JsonTypeInfoKind.Object"/> metadata. 126if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary)) 143/// Serialization callbacks are only supported for <see cref="JsonTypeInfoKind.Object"/> metadata. 156if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary)) 173/// Serialization callbacks are only supported for <see cref="JsonTypeInfoKind.Object"/> metadata. 186if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary)) 209/// Serialization callbacks are only supported for <see cref="JsonTypeInfoKind.Object"/> metadata. 222if (Kind is not (JsonTypeInfoKind.Object or JsonTypeInfoKind.Enumerable or JsonTypeInfoKind.Dictionary)) 235/// Property is only applicable to metadata of kind <see cref="JsonTypeInfoKind.Object"/>. 461/// of kind <see cref="JsonTypeInfoKind.Object"/>. 525/// Unmapped member handling only supported for <see cref="JsonTypeInfoKind.Object"/>. 541if (Kind != JsonTypeInfoKind.Object) 569/// Unmapped member handling only supported for <see cref="JsonTypeInfoKind.Object"/>. 585if (Kind != JsonTypeInfoKind.Object) 754if (Kind == JsonTypeInfoKind.Object)
System\Text\Json\Serialization\Metadata\PolymorphicTypeResolver.cs (1)
98if (derivedTypeInfo.JsonTypeInfo.Kind is JsonTypeInfoKind.Object)