• Articles
  • API Documentation
Search Results for

    Show / Hide Table of Contents
    • SixLabors.ImageSharp.Web
      • CaseHandlingUriBuilder
      • CaseHandlingUriBuilder.CaseHandling
      • CommandHandling
      • ExifOrientationUtilities
      • Format
      • FormatCommand
      • FormatUtilities
      • FormattedImage
      • HMACUtilities
      • ImageCacheMetadata
      • ImageMetadata
      • RequestAuthorizationUtilities
      • Resampler
      • ResamplerCommand
    • SixLabors.ImageSharp.Web.Caching
      • ICacheHash
      • ICacheKey
      • IImageCache
      • LegacyV1CacheKey
      • PhysicalFileSystemCache
      • PhysicalFileSystemCacheOptions
      • SHA256CacheHash
      • UriAbsoluteCacheKey
      • UriAbsoluteLowerInvariantCacheKey
      • UriRelativeCacheKey
      • UriRelativeLowerInvariantCacheKey
    • SixLabors.ImageSharp.Web.Commands
      • CommandCollection
      • CommandCollectionExtensions
      • CommandParser
      • IRequestParser
      • PresetOnlyQueryCollectionRequestParser
      • PresetOnlyQueryCollectionRequestParserOptions
      • QueryCollectionRequestParser
    • SixLabors.ImageSharp.Web.Commands.Converters
      • ArrayConverter<T>
      • ColorConverter
      • EnumConverter
      • ICommandConverter
      • ICommandConverter<T>
      • IntegralNumberConverter<T>
      • ListConverter<T>
      • SimpleCommandConverter<T>
    • SixLabors.ImageSharp.Web.DependencyInjection
      • ApplicationBuilderExtensions
      • IImageSharpBuilder
      • ImageSharpBuilderExtensions
      • ServiceCollectionExtensions
    • SixLabors.ImageSharp.Web.Middleware
      • ImageCommandContext
      • ImageProcessingContext
      • ImageSharpMiddleware
      • ImageSharpMiddlewareOptions
    • SixLabors.ImageSharp.Web.Processors
      • AutoOrientWebProcessor
      • BackgroundColorWebProcessor
      • FormatWebProcessor
      • IImageWebProcessor
      • QualityWebProcessor
      • ResizeWebProcessor
    • SixLabors.ImageSharp.Web.Providers
      • FileProviderImageProvider
      • IImageProvider
      • PhysicalFileSystemProvider
      • PhysicalFileSystemProviderOptions
      • ProcessingBehavior
      • WebRootImageProvider
    • SixLabors.ImageSharp.Web.Resolvers
      • FileProviderImageResolver
      • IImageCacheResolver
      • IImageResolver
      • PhysicalFileSystemCacheResolver
    • SixLabors.ImageSharp.Web.Synchronization
      • AsyncKeyLock<TKey>
      • AsyncKeyReaderWriterLock<TKey>
      • AsyncLock
      • AsyncReaderWriterLock
      • RefCountedConcurrentDictionary<TKey, TValue>
    • SixLabors.ImageSharp.Web.TagHelpers
      • HmacTokenTagHelper
      • ImageTagHelper

    Class EnumConverter

    The enum converter. Allows conversion to enumerations.

    Inheritance
    object
    EnumConverter
    Implements
    ICommandConverter<object>
    ICommandConverter
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SixLabors.ImageSharp.Web.Commands.Converters
    Assembly: SixLabors.ImageSharp.Web.dll
    Syntax
    public sealed class EnumConverter : ICommandConverter<object>, ICommandConverter

    Properties

    | Edit this page View Source

    Type

    Gets the type this converter returns.

    Declaration
    public Type Type { get; }
    Property Value
    Type Description
    Type

    Methods

    | Edit this page View Source

    ConvertFrom(CommandParser, CultureInfo, string?, Type)

    Converts the given string to the type of this converter, using the specified culture information.

    Declaration
    public object? 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 CultureInfo to use as the current parsing culture.

    string value

    The string to convert.

    Type propertyType

    The property type that the converter will convert to.

    Returns
    Type Description
    object

    A string that represents the converted value.

    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.

    Exceptions
    Type Condition
    NotSupportedException

    The conversion cannot be performed.

    Implements

    ICommandConverter<T>
    ICommandConverter
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX