50 references to JsonTypeInfoKind
Microsoft.AspNetCore.OpenApi (8)
Schemas\JsonSchemaMapper\JsonSchemaMapper.cs (5)
237
typeInfo.Kind !=
JsonTypeInfoKind
.None;
342
case
JsonTypeInfoKind
.None:
400
case
JsonTypeInfoKind
.Object:
492
case
JsonTypeInfoKind
.Enumerable:
534
case
JsonTypeInfoKind
.Dictionary:
Schemas\JsonSchemaMapper\JsonSchemaMapper.ReflectionHelpers.cs (3)
27
Debug.Assert(typeInfo.Kind is
JsonTypeInfoKind
.Enumerable or
JsonTypeInfoKind
.Dictionary);
157
Debug.Assert(typeInfo.Kind is
JsonTypeInfoKind
.Object);
System.Text.Json (42)
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
619
Debug.Assert(state.Current.JsonTypeInfo.Kind ==
JsonTypeInfoKind
.Object);
System\Text\Json\Serialization\JsonSerializer.Read.HandlePropertyName.cs (1)
29
if (jsonTypeInfo.Kind !=
JsonTypeInfoKind
.Object)
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Helpers.cs (2)
72
if (typeInfo.Kind is
JsonTypeInfoKind
.Object)
93
Debug.Assert(typeInfo.Kind is
JsonTypeInfoKind
.Object);
System\Text\Json\Serialization\Metadata\JsonMetadataServices.Helpers.cs (3)
86
Debug.Assert(typeInfo.Kind !=
JsonTypeInfoKind
.None);
115
Debug.Assert(typeInfo.Kind is
JsonTypeInfoKind
.Object);
130
Debug.Assert(typeInfo.Kind is
JsonTypeInfoKind
.Object);
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (29)
91
/// Serialization callbacks are only supported for <see cref="
JsonTypeInfoKind
.Object"/> metadata.
104
if (Kind !=
JsonTypeInfoKind
.Object)
121
/// Serialization callbacks are only supported for <see cref="
JsonTypeInfoKind
.Object"/> metadata.
134
if (Kind !=
JsonTypeInfoKind
.Object)
151
/// Serialization callbacks are only supported for <see cref="
JsonTypeInfoKind
.Object"/> metadata.
164
if (Kind !=
JsonTypeInfoKind
.Object)
181
/// Serialization callbacks are only supported for <see cref="
JsonTypeInfoKind
.Object"/> metadata.
194
if (Kind !=
JsonTypeInfoKind
.Object)
207
/// Property is only applicable to metadata of kind <see cref="
JsonTypeInfoKind
.Object"/>.
285
if (Kind ==
JsonTypeInfoKind
.None)
433
/// of kind <see cref="
JsonTypeInfoKind
.Object"/>.
438
/// are metadata-agnostic and thus always resolve to <see cref="
JsonTypeInfoKind
.None"/>.
440
public
JsonTypeInfoKind
Kind { get; private set; }
496
/// Unmapped member handling only supported for <see cref="
JsonTypeInfoKind
.Object"/>.
512
if (Kind !=
JsonTypeInfoKind
.Object)
540
/// Unmapped member handling only supported for <see cref="
JsonTypeInfoKind
.Object"/>.
556
if (Kind !=
JsonTypeInfoKind
.Object)
686
if (Kind ==
JsonTypeInfoKind
.Object)
1049
Debug.Assert(Kind ==
JsonTypeInfoKind
.Object);
1120
Debug.Assert(Kind ==
JsonTypeInfoKind
.Object);
1218
if (Kind ==
JsonTypeInfoKind
.Object)
1301
private static
JsonTypeInfoKind
GetTypeInfoKind(Type type, JsonConverter converter)
1307
return
JsonTypeInfoKind
.None;
1312
case ConverterStrategy.Value: return
JsonTypeInfoKind
.None;
1313
case ConverterStrategy.Object: return
JsonTypeInfoKind
.Object;
1314
case ConverterStrategy.Enumerable: return
JsonTypeInfoKind
.Enumerable;
1315
case ConverterStrategy.Dictionary: return
JsonTypeInfoKind
.Dictionary;
1335
public override bool IsReadOnly => _jsonTypeInfo._properties == this && _jsonTypeInfo.IsReadOnly || _jsonTypeInfo.Kind !=
JsonTypeInfoKind
.Object;
1343
if (_jsonTypeInfo.Kind !=
JsonTypeInfoKind
.Object)
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.cs (1)
64
if (Kind ==
JsonTypeInfoKind
.None)
System\Text\Json\Serialization\ReadStackFrame.cs (2)
117
return JsonTypeInfo.Kind is
JsonTypeInfoKind
.Dictionary;
125
return JsonTypeInfo.Kind is
JsonTypeInfoKind
.Enumerable;
System\Text\Json\ThrowHelper.Serialization.cs (3)
395
public static void ThrowInvalidOperationException_JsonTypeInfoOperationNotPossibleForKind(
JsonTypeInfoKind
kind)
603
else if (typeInfo.Kind is
JsonTypeInfoKind
.Enumerable or
JsonTypeInfoKind
.Dictionary)