System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
46Type = type;
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (21)
196ThrowHelper.ThrowInvalidOperationException_JsonTypeInfoOnDeserializingCallbacksNotSupported(Type);
378ThrowHelper.ThrowInvalidOperationException_NoMetadataForTypeProperties(Options.TypeInfoResolver, Type);
403Debug.Assert(value is null || value.Type == ElementType);
429Debug.Assert(value is null || value.Type == KeyType);
443/// Gets the <see cref="Type"/> for which the JSON serialization contract is being defined.
753PolymorphicTypeResolver = new PolymorphicTypeResolver(Options, PolymorphismOptions, Type, Converter.CanHaveMetadata);
793Debug.Assert(Type != typeof(object));
971Debug.Assert(jsonTypeInfo.Type == type);
993ThrowHelper.ThrowArgumentException_CannotSerializeInvalidType(nameof(propertyType), propertyType, Type, name);
1023parameters: new object[] { declaringType ?? Type, this, Options })!;
1090ThrowHelper.ThrowInvalidOperationException_ExtensionDataConflictsWithUnmappedMemberHandling(Type, property);
1095ThrowHelper.ThrowInvalidOperationException_SerializationDuplicateTypeAttribute(Type, typeof(JsonExtensionDataAttribute));
1117ThrowHelper.ThrowInvalidOperationException_SerializerPropertyNameConflict(Type, property.Name);
1206Type,
1242JsonPolymorphismOptions? options = JsonPolymorphismOptions.CreateFromAttributeDeclarations(Type);
1256if (typeof(IJsonOnSerializing).IsAssignableFrom(Type))
1261if (typeof(IJsonOnSerialized).IsAssignableFrom(Type))
1266if (typeof(IJsonOnDeserializing).IsAssignableFrom(Type))
1271if (typeof(IJsonOnDeserialized).IsAssignableFrom(Type))
1432ThrowHelper.ThrowInvalidOperationException_SerializerPropertyNameConflict(_jsonTypeInfo.Type, jsonPropertyInfo.Name);
1445private string DebuggerDisplay => $"Type = {Type.Name}, Kind = {Kind}";