Class IntegralNumberConverter<T>
The generic converter for integral types.
Inherited Members
Namespace: SixLabors.ImageSharp.Web.Commands.Converters
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public sealed class IntegralNumberConverter<T> : ICommandConverter<T>, ICommandConverter where T : struct, IConvertible, IComparable<T>
  Type Parameters
| Name | Description | 
|---|---|
| T | The type this converter returns.  | 
      
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, 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.  |