Table of Contents

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

converters IEnumerable<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

value string

The string value to parse.

culture CultureInfo

The CultureInfo to use as the current culture.

Returns

T

The converted instance or the default.

Type Parameters

T

The Type to convert the string to.