mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
15 lines
392 B
C#
15 lines
392 B
C#
namespace CliFx.Extensibility;
|
|
|
|
/// <summary>
|
|
/// Base type for custom converters.
|
|
/// </summary>
|
|
public abstract class BindingConverter<T> : IBindingConverter
|
|
{
|
|
/// <summary>
|
|
/// Parses the value from a raw command-line argument.
|
|
/// </summary>
|
|
public abstract T? Convert(string? rawValue);
|
|
|
|
object? IBindingConverter.Convert(string? rawValue) => Convert(rawValue);
|
|
}
|