Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    Class SingleConverter

    Argument converter for float.

    Inheritance
    System.Object
    SingleConverter
    Implements
    IArgumentConverter
    Namespace: TehGM.Wolfringo.Commands.Parsing.ArgumentConverters
    Assembly: Wolfringo.Commands.dll
    Syntax
    public class SingleConverter : IArgumentConverter

    Methods

    | Improve this Doc View Source

    CanConvert(ParameterInfo)

    Determines whether this converter can convert an argument to given parameter.

    Declaration
    public bool CanConvert(ParameterInfo parameter)
    Parameters
    Type Name Description
    System.Reflection.ParameterInfo parameter

    Parameter to convert the argument to.

    Returns
    Type Description
    System.Boolean

    True if this converter can be used for the conversion; otherwise false.

    | Improve this Doc View Source

    Convert(ParameterInfo, String)

    Converts an argument to given parameter.

    Declaration
    public object Convert(ParameterInfo parameter, string arg)
    Parameters
    Type Name Description
    System.Reflection.ParameterInfo parameter

    Parameter to convert the argument to.

    System.String arg

    Argument to convert.

    Returns
    Type Description
    System.Object

    Argument converted to given type.

    Implements

    IArgumentConverter