Search Results for

    Show / Hide Table of Contents

    Class EnumConverter<T>

    Represents a enum converter.

    Inheritance
    System.Object
    EnumConverter<T>
    Implements
    IArgumentConverter<T>
    IArgumentConverter
    Namespace: DisCatSharp.CommandsNext.Converters
    Assembly: DisCatSharp.CommandsNext.dll
    Syntax
    public class EnumConverter<T> : IArgumentConverter<T>, IArgumentConverter where T : struct, IComparable, IConvertible, IFormattable
    Type Parameters
    Name Description
    T

    Explicit Interface Implementations

    | Improve this Doc View Source

    IArgumentConverter<T>.ConvertAsync(String, CommandContext)

    Converts a string.

    Declaration
    Task<Optional<T>> IArgumentConverter<T>.ConvertAsync(string value, CommandContext ctx)
    Parameters
    Type Name Description
    System.String value

    The string to convert.

    CommandContext ctx

    The command context.

    Returns
    Type Description
    System.Threading.Tasks.Task<Optional<T>>

    Implements

    IArgumentConverter<T>
    IArgumentConverter

    Extension Methods

    ReflectionUtilities.ToDictionary<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems