System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
41Type = type;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (25)
191ThrowHelper.ThrowInvalidOperationException_JsonTypeInfoOnDeserializingCallbacksNotSupported(Type);
505/// The delegate takes a <see cref="Type"/> parameter naming the resolved case type
627ThrowHelper.ThrowInvalidOperationException_NoMetadataForTypeProperties(Options.TypeInfoResolver, Type);
652Debug.Assert(value is null || value.Type == ElementType);
678Debug.Assert(value is null || value.Type == KeyType);
692/// Gets the <see cref="Type"/> for which the JSON serialization contract is being defined.
996PolymorphicTypeResolver = new PolymorphicTypeResolver(Options, PolymorphismOptions, Type, Converter.CanHaveMetadata);
1062ThrowHelper.ThrowInvalidOperationException_UnionCasesNotPopulated(Type);
1067ThrowHelper.ThrowInvalidOperationException_UnionCannotCreateValue(Type);
1072ThrowHelper.ThrowInvalidOperationException_UnionCannotReadValue(Type);
1134ThrowHelper.ThrowInvalidOperationException_TypeClassifierNotSupported(factory.GetType(), Type);
1244Debug.Assert(Type != typeof(object));
1422Debug.Assert(jsonTypeInfo.Type == type);
1444ThrowHelper.ThrowArgumentException_CannotSerializeInvalidType(nameof(propertyType), propertyType, Type, name);
1474parameters: new object[] { declaringType ?? Type, this, Options })!;
1542ThrowHelper.ThrowInvalidOperationException_ExtensionDataConflictsWithUnmappedMemberHandling(Type, property);
1547ThrowHelper.ThrowInvalidOperationException_SerializationDuplicateTypeAttribute(Type, typeof(JsonExtensionDataAttribute));
1569ThrowHelper.ThrowInvalidOperationException_SerializerPropertyNameConflict(Type, property.Name);
1653Type,
1691if (typeof(IJsonOnSerializing).IsAssignableFrom(Type))
1696if (typeof(IJsonOnSerialized).IsAssignableFrom(Type))
1701if (typeof(IJsonOnDeserializing).IsAssignableFrom(Type))
1706if (typeof(IJsonOnDeserialized).IsAssignableFrom(Type))
1849ThrowHelper.ThrowInvalidOperationException_SerializerPropertyNameConflict(_jsonTypeInfo.Type, jsonPropertyInfo.Name);
1862private string DebuggerDisplay => $"Type = {Type.Name}, Kind = {Kind}";