Добавьте файлы проекта.
This commit is contained in:
15
ArgumentsToolkit.Core/Attributes/OptionConverterAttribute.cs
Normal file
15
ArgumentsToolkit.Core/Attributes/OptionConverterAttribute.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace ArgumentsToolkit;
|
||||
|
||||
/// <summary>
|
||||
/// Атрибут для указания кастомного конвертера для свойства.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
|
||||
public sealed class OptionConverterAttribute : Attribute
|
||||
{
|
||||
public Type ConverterType { get; }
|
||||
|
||||
public OptionConverterAttribute(Type converterType)
|
||||
{
|
||||
ConverterType = converterType;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user