Class ListConverter<T>
Converts the value of a string to a generic list.
Namespace: SixLabors.ImageSharp.Web.Commands.Converters
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public sealed class ListConverter<T> : object, ICommandConverter<List<T>>, ICommandConverter
Type Parameters
Name | Description |
---|---|
T | The type of result to return. |
Properties
| Improve this Doc View SourceType
Gets the type this converter returns.
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
| Improve this Doc View SourceConvertFrom(CommandParser, CultureInfo, Nullable<String>, Type)
Converts the given string to the type of this converter, using the specified culture information.
Declaration
public List<T> ConvertFrom(CommandParser parser, CultureInfo culture, string? value, Type propertyType)
Parameters
Type | Name | Description |
---|---|---|
CommandParser | parser | The command parser use for parting commands. |
CultureInfo | culture | The |
Nullable<String> | value | The |
Type | propertyType | The property type that the converter will convert to. |
Returns
Type | Description |
---|---|
List<T> | A |