System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
44Type = type;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (21)
194ThrowHelper.ThrowInvalidOperationException_JsonTypeInfoOnDeserializingCallbacksNotSupported(Type);
376ThrowHelper.ThrowInvalidOperationException_NoMetadataForTypeProperties(Options.TypeInfoResolver, Type);
401Debug.Assert(value is null || value.Type == ElementType);
427Debug.Assert(value is null || value.Type == KeyType);
441/// Gets the <see cref="Type"/> for which the JSON serialization contract is being defined.
751PolymorphicTypeResolver = new PolymorphicTypeResolver(Options, PolymorphismOptions, Type, Converter.CanHaveMetadata);
791Debug.Assert(Type != typeof(object));
969Debug.Assert(jsonTypeInfo.Type == type);
991ThrowHelper.ThrowArgumentException_CannotSerializeInvalidType(nameof(propertyType), propertyType, Type, name);
1021parameters: new object[] { declaringType ?? Type, this, Options })!;
1087ThrowHelper.ThrowInvalidOperationException_ExtensionDataConflictsWithUnmappedMemberHandling(Type, property);
1092ThrowHelper.ThrowInvalidOperationException_SerializationDuplicateTypeAttribute(Type, typeof(JsonExtensionDataAttribute));
1112ThrowHelper.ThrowInvalidOperationException_SerializerPropertyNameConflict(Type, property.Name);
1201Type,
1237JsonPolymorphismOptions? options = JsonPolymorphismOptions.CreateFromAttributeDeclarations(Type);
1251if (typeof(IJsonOnSerializing).IsAssignableFrom(Type))
1256if (typeof(IJsonOnSerialized).IsAssignableFrom(Type))
1261if (typeof(IJsonOnDeserializing).IsAssignableFrom(Type))
1266if (typeof(IJsonOnDeserialized).IsAssignableFrom(Type))
1427ThrowHelper.ThrowInvalidOperationException_SerializerPropertyNameConflict(_jsonTypeInfo.Type, jsonPropertyInfo.Name);
1440private string DebuggerDisplay => $"Type = {Type.Name}, Kind = {Kind}";