System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
41Type = type;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (27)
191ThrowHelper.ThrowInvalidOperationException_JsonTypeInfoOnDeserializingCallbacksNotSupported(Type);
503/// The delegate takes a <see cref="Type"/> parameter naming the resolved case type
620ThrowHelper.ThrowInvalidOperationException_NoMetadataForTypeProperties(Options.TypeInfoResolver, Type);
645Debug.Assert(value is null || value.Type == ElementType);
671Debug.Assert(value is null || value.Type == KeyType);
685/// Gets the <see cref="Type"/> for which the JSON serialization contract is being defined.
989PolymorphicTypeResolver = new PolymorphicTypeResolver(Options, PolymorphismOptions, Type, Converter.CanHaveMetadata);
1049ThrowHelper.ThrowInvalidOperationException_UnionCasesNotPopulated(Type);
1054ThrowHelper.ThrowInvalidOperationException_UnionCannotCreateValue(Type);
1059ThrowHelper.ThrowInvalidOperationException_UnionCannotReadValue(Type);
1099Type,
1111Type,
1121ThrowHelper.ThrowInvalidOperationException_TypeClassifierNotSupported(factory.GetType(), Type);
1231Debug.Assert(Type != typeof(object));
1409Debug.Assert(jsonTypeInfo.Type == type);
1431ThrowHelper.ThrowArgumentException_CannotSerializeInvalidType(nameof(propertyType), propertyType, Type, name);
1461parameters: new object[] { declaringType ?? Type, this, Options })!;
1529ThrowHelper.ThrowInvalidOperationException_ExtensionDataConflictsWithUnmappedMemberHandling(Type, property);
1534ThrowHelper.ThrowInvalidOperationException_SerializationDuplicateTypeAttribute(Type, typeof(JsonExtensionDataAttribute));
1556ThrowHelper.ThrowInvalidOperationException_SerializerPropertyNameConflict(Type, property.Name);
1640Type,
1678if (typeof(IJsonOnSerializing).IsAssignableFrom(Type))
1683if (typeof(IJsonOnSerialized).IsAssignableFrom(Type))
1688if (typeof(IJsonOnDeserializing).IsAssignableFrom(Type))
1693if (typeof(IJsonOnDeserialized).IsAssignableFrom(Type))
1860ThrowHelper.ThrowInvalidOperationException_SerializerPropertyNameConflict(_jsonTypeInfo.Type, jsonPropertyInfo.Name);
1873private string DebuggerDisplay => $"Type = {Type.Name}, Kind = {Kind}";