Class ListConverter<T>
- Namespace
- SixLabors.ImageSharp.Web.Commands.Converters
- Assembly
- SixLabors.ImageSharp.Web.dll
Converts the value of a string to a generic list.
public sealed class ListConverter<T> : ICommandConverter<List<T>>, ICommandConverter
Type Parameters
TThe type of result to return.
- Inheritance
-
ListConverter<T>
- Implements
- Inherited Members
Properties
Type
Gets the type this converter returns.
public Type Type { get; }
Property Value
Methods
ConvertFrom(CommandParser, CultureInfo, string?, Type)
Converts the given string to the type of this converter, using the specified culture information.
public List<T> ConvertFrom(CommandParser parser, CultureInfo culture, string? value, Type propertyType)
Parameters
parserCommandParserThe command parser use for parting commands.
cultureCultureInfoThe CultureInfo to use as the current parsing culture.
valuestringThe string to convert.
propertyTypeTypeThe property type that the converter will convert to.
Returns
Exceptions
- NotSupportedException
The conversion cannot be performed.