2 overrides of Type
System.Text.Json (2)
System\Text\Json\Serialization\JsonConverterFactory.cs (1)
142public sealed override Type? Type => null;
System\Text\Json\Serialization\JsonConverterOfT.cs (1)
497public sealed override Type Type { get; } = typeof(T);
25 references to Type
System.Text.Json (25)
System\Text\Json\Schema\JsonSchemaExporter.cs (1)
192JsonTypeInfo elementTypeInfo = typeInfo.Options.GetTypeInfo(elementConverter.Type!);
System\Text\Json\Serialization\Converters\CastingConverter.cs (1)
27Debug.Assert(typeof(T).IsInSubtypeRelationshipWith(sourceConverter.Type!));
System\Text\Json\Serialization\Converters\Collection\JsonCollectionConverter.cs (1)
167bool success = polymorphicConverter.OnTryReadAsObject(ref reader, polymorphicConverter.Type!, options, ref state, out object? objectResult);
System\Text\Json\Serialization\Converters\Collection\JsonDictionaryConverter.cs (1)
189bool success = polymorphicConverter.OnTryReadAsObject(ref reader, polymorphicConverter.Type!, options, ref state, out object? objectResult);
System\Text\Json\Serialization\Converters\Object\ObjectDefaultConverter.cs (1)
92bool success = polymorphicConverter.OnTryReadAsObject(ref reader, polymorphicConverter.Type!, options, ref state, out object? objectResult);
System\Text\Json\Serialization\Converters\Object\ObjectWithParameterizedConstructorConverter.cs (1)
155bool success = polymorphicConverter.OnTryReadAsObject(ref reader, polymorphicConverter.Type!, options, ref state, out object? objectResult);
System\Text\Json\Serialization\Converters\Value\NullableConverterFactory.cs (1)
27if (!valueConverter.Type!.IsValueType && valueTypeToConvert.IsValueType)
System\Text\Json\Serialization\JsonConverter.MetadataHandling.cs (8)
33Debug.Assert(Type!.IsAssignableFrom(resolvedType.Type)); 51Debug.Assert(Type!.IsAssignableFrom(polymorphicConverter.Type)); 72Debug.Assert(value != null && Type!.IsAssignableFrom(value.GetType())); 85if (CanBePolymorphic && runtimeType != Type) 87Debug.Assert(Type == typeof(object)); 123Debug.Assert(Type.IsAssignableFrom(polymorphicConverter.Type));
System\Text\Json\Serialization\JsonConverterOfT.cs (1)
378Debug.Assert(jsonTypeInfo.Converter.Type == Type);
System\Text\Json\Serialization\JsonSerializer.Read.HandleMetadata.cs (4)
101ThrowHelper.ThrowJsonException_MetadataCannotParsePreservedObjectIntoImmutable(converter.Type!); 117ThrowHelper.ThrowJsonException_MetadataInvalidReferenceToValueType(converter.Type!); 504ThrowHelper.ThrowJsonException_MetadataPreservedArrayValuesNotFound(ref state, converter.Type!); 511ThrowHelper.ThrowJsonException_MetadataInvalidPropertyInArrayMetadata(ref state, converter.Type!, reader);
System\Text\Json\Serialization\JsonSerializerOptions.Converters.cs (1)
108(propertyType.IsNullableOfT() ^ converter.Type!.IsNullableOfT()))
System\Text\Json\Serialization\Metadata\DefaultJsonTypeInfoResolver.Converters.cs (2)
89converters.Add(converter.Type!, converter); 164if (!converter.Type!.IsInSubtypeRelationshipWith(typeToConvert))
System\Text\Json\Serialization\Metadata\JsonTypeInfo.cs (1)
965if (converter.Type == type)
System\Text\Json\ThrowHelper.Serialization.cs (1)
394throw new InvalidOperationException(SR.Format(SR.ConverterCanConvertMultipleTypes, jsonConverter.GetType(), jsonConverter.Type, runtimePropertyType));