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
628ThrowHelper.ThrowInvalidOperationException_NoMetadataForTypeProperties(Options.TypeInfoResolver, Type);
653Debug.Assert(value is null || value.Type == ElementType);
679Debug.Assert(value is null || value.Type == KeyType);
693/// Gets the <see cref="Type"/> for which the JSON serialization contract is being defined.
997PolymorphicTypeResolver = new PolymorphicTypeResolver(Options, PolymorphismOptions, Type, Converter.CanHaveMetadata);
1057ThrowHelper.ThrowInvalidOperationException_UnionCasesNotPopulated(Type);
1062ThrowHelper.ThrowInvalidOperationException_UnionCannotCreateValue(Type);
1067ThrowHelper.ThrowInvalidOperationException_UnionCannotReadValue(Type);
1107Type,
1119Type,
1129ThrowHelper.ThrowInvalidOperationException_TypeClassifierNotSupported(factory.GetType(), Type);
1260Debug.Assert(Type != typeof(object));
1438Debug.Assert(jsonTypeInfo.Type == type);
1460ThrowHelper.ThrowArgumentException_CannotSerializeInvalidType(nameof(propertyType), propertyType, Type, name);
1490parameters: new object[] { declaringType ?? Type, this, Options })!;
1558ThrowHelper.ThrowInvalidOperationException_ExtensionDataConflictsWithUnmappedMemberHandling(Type, property);
1563ThrowHelper.ThrowInvalidOperationException_SerializationDuplicateTypeAttribute(Type, typeof(JsonExtensionDataAttribute));
1585ThrowHelper.ThrowInvalidOperationException_SerializerPropertyNameConflict(Type, property.Name);
1669Type,
1707if (typeof(IJsonOnSerializing).IsAssignableFrom(Type))
1712if (typeof(IJsonOnSerialized).IsAssignableFrom(Type))
1717if (typeof(IJsonOnDeserializing).IsAssignableFrom(Type))
1722if (typeof(IJsonOnDeserialized).IsAssignableFrom(Type))
1889ThrowHelper.ThrowInvalidOperationException_SerializerPropertyNameConflict(_jsonTypeInfo.Type, jsonPropertyInfo.Name);
1902private string DebuggerDisplay => $"Type = {Type.Name}, Kind = {Kind}";