Files
serein-flow/Library/Attributes/BindConvertorAttribute.cs
fengjiayi 8dc7f5dd9b 调整了Library文件结构;
源代码生成新增了参数验证方法;
修改了ParamterDetails的定义
2025-07-29 18:36:43 +08:00

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;
}
}
}