• 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 SimpleCommandConverter<T>

    The generic converter for simple types that implement IConvertible.

    Inheritance
    object
    SimpleCommandConverter<T>
    Implements
    ICommandConverter<T>
    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 SimpleCommandConverter<T> : ICommandConverter<T>, ICommandConverter where T : IConvertible
    Type Parameters
    Name Description
    T

    The type of object to convert to.

    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 T? 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
    T

    A string that represents the converted value.

    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