Class WolfTimestampConverter
Argument converter for WolfTimestamp.
Implements
Namespace: TehGM.Wolfringo.Commands.Parsing.ArgumentConverters
Assembly: Wolfringo.Commands.dll
Syntax
public class WolfTimestampConverter : IArgumentConverter
Methods
| Improve this Doc View SourceCanConvert(ParameterInfo)
Determines whether this converter can convert an argument to given parameter.
Declaration
public bool CanConvert(ParameterInfo parameter)
Parameters
Type | Name | Description |
---|---|---|
ParameterInfo | parameter | Parameter to convert the argument to. |
Returns
Type | Description |
---|---|
Boolean | True if this converter can be used for the conversion; otherwise false. |
Convert(ParameterInfo, String)
Converts an argument to given parameter.
Declaration
public object Convert(ParameterInfo parameter, string arg)
Parameters
Type | Name | Description |
---|---|---|
ParameterInfo | parameter | Parameter to convert the argument to. |
String | arg | Argument to convert. |
Returns
Type | Description |
---|---|
Object | Argument converted to given type. |