6 types derived from FormDataConverter
Microsoft.AspNetCore.Components.Endpoints (6)
FormMapping\Converters\CollectionConverter.cs (1)
20internal abstract class CollectionConverter<TCollection> : FormDataConverter<TCollection>
FormMapping\Converters\DictionaryConverter.cs (1)
10internal abstract class DictionaryConverter<TDictionary> : FormDataConverter<TDictionary>
FormMapping\Converters\EnumConverter.cs (1)
9internal class EnumConverter<TEnum> : FormDataConverter<TEnum>, ISingleValueConverter<TEnum> where TEnum : struct, Enum
FormMapping\Converters\FileConverter.cs (1)
12internal sealed class FileConverter<T> : FormDataConverter<T>
FormMapping\Converters\ParsableConverter.cs (1)
9internal sealed class ParsableConverter<T> : FormDataConverter<T>, ISingleValueConverter<T> where T : IParsable<T>
FormMapping\Converters\UriFormDataConverter.cs (1)
9internal class UriFormDataConverter : FormDataConverter<Uri>, ISingleValueConverter<Uri>
57 references to FormDataConverter
Microsoft.AspNetCore.Components.Endpoints (57)
FormMapping\Converters\CollectionAdapters\ImmutableHashSetBufferAdapter.cs (1)
20public static CollectionConverter<IImmutableSet<TElement>> CreateInterfaceConverter(FormDataConverter<TElement> elementConverter)
FormMapping\Converters\CollectionAdapters\ImmutableListBufferAdapter.cs (1)
20public static CollectionConverter<IImmutableList<TElement>> CreateInterfaceConverter(FormDataConverter<TElement> elementConverter)
FormMapping\Converters\CollectionAdapters\ImmutableQueueBufferAdapter.cs (1)
20public static CollectionConverter<IImmutableQueue<TElement>> CreateInterfaceConverter(FormDataConverter<TElement> elementConverter)
FormMapping\Converters\CollectionAdapters\ImmutableStackBufferAdapter.cs (1)
20public static CollectionConverter<IImmutableStack<TElement>> CreateInterfaceConverter(FormDataConverter<TElement> elementConverter)
FormMapping\Converters\CollectionConverter.cs (2)
43private readonly FormDataConverter<TElement> _elementConverter; 45public CollectionConverter(FormDataConverter<TElement> elementConverter)
FormMapping\Converters\CompiledComplexTypeConverter.cs (1)
8internal class CompiledComplexTypeConverter<T>(CompiledComplexTypeConverter<T>.ConverterDelegate body) : FormDataConverter<T>
FormMapping\Converters\DictionaryAdapters\ImmutableDictionaryBufferAdapter.cs (1)
22internal static DictionaryConverter<IImmutableDictionary<TKey, TValue>> CreateInterfaceConverter(FormDataConverter<TValue> valueTypeConverter)
FormMapping\Converters\DictionaryAdapters\ReadOnlyDictionaryBufferAdapter.cs (2)
24internal static DictionaryConverter<IReadOnlyDictionary<TKey, TValue>> CreateInterfaceConverter(FormDataConverter<TValue> valueTypeConverter) 39internal static DictionaryConverter<ReadOnlyDictionary<TKey, TValue>> CreateConverter(FormDataConverter<TValue> valueTypeConverter)
FormMapping\Converters\DictionaryConverter.cs (2)
18private readonly FormDataConverter<TValue> _valueConverter; 21public DictionaryConverter(FormDataConverter<TValue> elementConverter)
FormMapping\Converters\NullableConverter.cs (3)
8internal sealed class NullableConverter<T>(FormDataConverter<T> nonNullableConverter) : FormDataConverter<T?>, ISingleValueConverter<T?> where T : struct 10private readonly FormDataConverter<T> _nonNullableConverter = nonNullableConverter;
FormMapping\Factories\Collections\ConcreteTypeCollectionConverterFactory.cs (3)
23var elementTypeConverter = options.ResolveConverter<TElement>() ?? 39public abstract FormDataConverter CreateConverter(FormDataConverter<TElement> elementConverter); 45public override FormDataConverter CreateConverter(FormDataConverter<TElement> elementConverter)
FormMapping\Factories\Collections\TypedCollectionConverterFactory.cs (2)
114var elementTypeConverter = options.ResolveConverter<TElement>() ?? 210static FormDataConverter CreateConverter<TInterface, TImplementation>(FormDataConverter<TElement> elementTypeConverter)
FormMapping\Factories\ComplexType\ComplexTypeExpressionConverterFactoryOfT.cs (4)
343var propertyConverterType = typeof(FormDataConverter<>).MakeGenericType(property.Type); 387nameof(FormDataConverter<T>.TryRead), 443var constructorParameterConverterType = typeof(FormDataConverter<>).MakeGenericType(constructorParameter.Type); 490nameof(FormDataConverter<T>.TryRead),
FormMapping\Factories\Dictionary\ConcreteTypeDictionaryConverterFactory.cs (6)
22var keyConverter = options.ResolveConverter<TKey>() ?? 25var valueConverter = options.ResolveConverter<TValue>() ?? 41public abstract FormDataConverter CreateConverter(FormDataConverter<TKey> keyConverter, FormDataConverter<TValue> valueConverter); 47public override FormDataConverter CreateConverter(FormDataConverter<TKey> keyConverter, FormDataConverter<TValue> valueConverter)
FormMapping\Factories\Dictionary\TypedDictionaryConverterFactory.cs (1)
74var valueTypeConverter = options.ResolveConverter<TValue>();
FormMapping\FormDataMapper.cs (1)
17FormDataConverter<T>? converter;
FormMapping\FormDataMapperOptions.cs (3)
53internal FormDataConverter<T>? ResolveConverter<T>() 55return (FormDataConverter<T>)_converters.GetOrAdd(typeof(T), CreateConverter, this); 83internal void AddConverter<T>(FormDataConverter<T> converter)
FormMapping\WellKnownConverters.cs (22)
56converters.Add(typeof(char?), new NullableConverter<char>((FormDataConverter<char>)converters[typeof(char)])); 57converters.Add(typeof(bool?), new NullableConverter<bool>((FormDataConverter<bool>)converters[typeof(bool)])); 58converters.Add(typeof(byte?), new NullableConverter<byte>((FormDataConverter<byte>)converters[typeof(byte)])); 59converters.Add(typeof(sbyte?), new NullableConverter<sbyte>((FormDataConverter<sbyte>)converters[typeof(sbyte)])); 60converters.Add(typeof(ushort?), new NullableConverter<ushort>((FormDataConverter<ushort>)converters[typeof(ushort)])); 61converters.Add(typeof(uint?), new NullableConverter<uint>((FormDataConverter<uint>)converters[typeof(uint)])); 62converters.Add(typeof(ulong?), new NullableConverter<ulong>((FormDataConverter<ulong>)converters[typeof(ulong)])); 63converters.Add(typeof(Int128?), new NullableConverter<Int128>((FormDataConverter<Int128>)converters[typeof(Int128)])); 64converters.Add(typeof(short?), new NullableConverter<short>((FormDataConverter<short>)converters[typeof(short)])); 65converters.Add(typeof(int?), new NullableConverter<int>((FormDataConverter<int>)converters[typeof(int)])); 66converters.Add(typeof(long?), new NullableConverter<long>((FormDataConverter<long>)converters[typeof(long)])); 67converters.Add(typeof(UInt128?), new NullableConverter<UInt128>((FormDataConverter<UInt128>)converters[typeof(UInt128)])); 68converters.Add(typeof(Half?), new NullableConverter<Half>((FormDataConverter<Half>)converters[typeof(Half)])); 69converters.Add(typeof(float?), new NullableConverter<float>((FormDataConverter<float>)converters[typeof(float)])); 70converters.Add(typeof(double?), new NullableConverter<double>((FormDataConverter<double>)converters[typeof(double)])); 71converters.Add(typeof(decimal?), new NullableConverter<decimal>((FormDataConverter<decimal>)converters[typeof(decimal)])); 72converters.Add(typeof(DateOnly?), new NullableConverter<DateOnly>((FormDataConverter<DateOnly>)converters[typeof(DateOnly)])); 73converters.Add(typeof(DateTime?), new NullableConverter<DateTime>((FormDataConverter<DateTime>)converters[typeof(DateTime)])); 74converters.Add(typeof(DateTimeOffset?), new NullableConverter<DateTimeOffset>((FormDataConverter<DateTimeOffset>)converters[typeof(DateTimeOffset)])); 75converters.Add(typeof(TimeSpan?), new NullableConverter<TimeSpan>((FormDataConverter<TimeSpan>)converters[typeof(TimeSpan)])); 76converters.Add(typeof(TimeOnly?), new NullableConverter<TimeOnly>((FormDataConverter<TimeOnly>)converters[typeof(TimeOnly)])); 77converters.Add(typeof(Guid?), new NullableConverter<Guid>((FormDataConverter<Guid>)converters[typeof(Guid)]));