Class CommandParser
Parses URI derived command values into usable commands for processors.
Inherited Members
Namespace: SixLabors.ImageSharp.Web.Commands
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public sealed class CommandParser
Constructors
| Edit this page View SourceCommandParser(IEnumerable<ICommandConverter>)
Initializes a new instance of the CommandParser class.
Declaration
public CommandParser(IEnumerable<ICommandConverter> converters)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<ICommandConverter> | converters | The collection of command converters. |
Methods
| Edit this page View SourceParseValue<T>(string?, CultureInfo)
Parses the given string value converting it to the given type.
Declaration
public T? ParseValue<T>(string? value, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The string value to parse. |
| CultureInfo | culture | The CultureInfo to use as the current culture. |
Returns
| Type | Description |
|---|---|
| T | The converted instance or the default. |
Type Parameters
| Name | Description |
|---|---|
| T | The Type to convert the string to. |