Class CommandParser
- Namespace
- SixLabors.ImageSharp.Web.Commands
- Assembly
- SixLabors.ImageSharp.Web.dll
Parses URI derived command values into usable commands for processors.
public sealed class CommandParser
- Inheritance
-
CommandParser
- Inherited Members
Constructors
CommandParser(IEnumerable<ICommandConverter>)
Initializes a new instance of the CommandParser class.
public CommandParser(IEnumerable<ICommandConverter> converters)
Parameters
convertersIEnumerable<ICommandConverter>The collection of command converters.
Methods
ParseValue<T>(string?, CultureInfo)
Parses the given string value converting it to the given type.
public T? ParseValue<T>(string? value, CultureInfo culture)
Parameters
valuestringThe string value to parse.
cultureCultureInfoThe CultureInfo to use as the current culture.
Returns
- T
The converted instance or the default.
Type Parameters
TThe Type to convert the string to.