Class DateTimeOffsetConverter
Argument converter for DateTimeOffset.
Inheritance
System.Object
DateTimeOffsetConverter
Implements
Namespace: TehGM.Wolfringo.Commands.Parsing.ArgumentConverters
Assembly: Wolfringo.Commands.dll
Syntax
public class DateTimeOffsetConverter : 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 |
---|---|---|
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. |
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. |