System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
46Type = type;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (27)
196ThrowHelper.ThrowInvalidOperationException_JsonTypeInfoOnDeserializingCallbacksNotSupported(Type);
508/// The delegate takes a <see cref="Type"/> parameter naming the resolved case type
633ThrowHelper.ThrowInvalidOperationException_NoMetadataForTypeProperties(Options.TypeInfoResolver, Type);
658Debug.Assert(value is null || value.Type == ElementType);
684Debug.Assert(value is null || value.Type == KeyType);
698/// Gets the <see cref="Type"/> for which the JSON serialization contract is being defined.
1008PolymorphicTypeResolver = new PolymorphicTypeResolver(Options, PolymorphismOptions, Type, Converter.CanHaveMetadata);
1068ThrowHelper.ThrowInvalidOperationException_UnionCasesNotPopulated(Type);
1073ThrowHelper.ThrowInvalidOperationException_UnionCannotCreateValue(Type);
1078ThrowHelper.ThrowInvalidOperationException_UnionCannotReadValue(Type);
1118Type,
1130Type,
1140ThrowHelper.ThrowInvalidOperationException_TypeClassifierNotSupported(factory.GetType(), Type);
1271Debug.Assert(Type != typeof(object));
1449Debug.Assert(jsonTypeInfo.Type == type);
1471ThrowHelper.ThrowArgumentException_CannotSerializeInvalidType(nameof(propertyType), propertyType, Type, name);
1501parameters: new object[] { declaringType ?? Type, this, Options })!;
1569ThrowHelper.ThrowInvalidOperationException_ExtensionDataConflictsWithUnmappedMemberHandling(Type, property);
1574ThrowHelper.ThrowInvalidOperationException_SerializationDuplicateTypeAttribute(Type, typeof(JsonExtensionDataAttribute));
1596ThrowHelper.ThrowInvalidOperationException_SerializerPropertyNameConflict(Type, property.Name);
1680Type,
1718if (typeof(IJsonOnSerializing).IsAssignableFrom(Type))
1723if (typeof(IJsonOnSerialized).IsAssignableFrom(Type))
1728if (typeof(IJsonOnDeserializing).IsAssignableFrom(Type))
1733if (typeof(IJsonOnDeserialized).IsAssignableFrom(Type))
1900ThrowHelper.ThrowInvalidOperationException_SerializerPropertyNameConflict(_jsonTypeInfo.Type, jsonPropertyInfo.Name);
1913private string DebuggerDisplay => $"Type = {Type.Name}, Kind = {Kind}";