mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-02 15:50:47 +08:00
22 lines
460 B
C#
22 lines
460 B
C#
using System;
|
|
|
|
namespace Serein.Library
|
|
{
|
|
/// <summary>
|
|
/// 绑定转换器
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Parameter)]
|
|
public class BindConvertorAttribute : Attribute
|
|
{
|
|
public Type EnumType { get; }
|
|
public Type ConvertorType { get; }
|
|
|
|
public BindConvertorAttribute(Type @enum, Type convertor)
|
|
{
|
|
EnumType = @enum;
|
|
ConvertorType = convertor;
|
|
}
|
|
}
|
|
|
|
}
|