mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
12 lines
337 B
C#
12 lines
337 B
C#
using System;
|
|
|
|
namespace CliFx.Extensibility;
|
|
|
|
/// <summary>
|
|
/// Converter for binding inputs to properties using a custom delegate.
|
|
/// </summary>
|
|
public class DelegateBindingConverter<T>(Func<string?, T> convert) : BindingConverter<T>
|
|
{
|
|
/// <inheritdoc />
|
|
public override T? Convert(string? rawValue) => convert(rawValue);
|
|
} |