Class NullableConverter<T>
Represents a nullable converter.
Inheritance
System.Object
NullableConverter<T>
Namespace: DisCatSharp.CommandsNext.Converters
Assembly: DisCatSharp.CommandsNext.dll
Syntax
public class NullableConverter<T> : IArgumentConverter<T?>, IArgumentConverter where T : struct
Type Parameters
Name | Description |
---|---|
T |
Explicit Interface Implementations
| Improve this Doc View SourceIArgumentConverter<Nullable<T>>.ConvertAsync(String, CommandContext)
Converts a string.
Declaration
async 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<System.Nullable<T>>> |