Class EnumConverter
The enum converter. Allows conversion to enumerations.
Namespace: SixLabors.ImageSharp.Web.Commands.Converters
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public sealed class EnumConverter : object, ICommandConverter<object>, ICommandConverter
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)
Declaration
public object? ConvertFrom(CommandParser parser, CultureInfo culture, string? value, Type propertyType)
Parameters
Type | Name | Description |
---|---|---|
CommandParser | parser | |
CultureInfo | culture | |
Nullable<String> | value | |
Type | propertyType |
Returns
Type | Description |
---|---|
Nullable<Object> |
Remarks
Unlike other converters the Type property does not
match the propertyType
value.
This allows us to reuse the same converter for infinite enum types.