mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
27 lines
571 B
C#
27 lines
571 B
C#
using System;
|
|
|
|
namespace Serein.Library
|
|
{
|
|
/// <summary>
|
|
/// 绑定值特性
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
|
|
public class BindValueAttribute : Attribute
|
|
{
|
|
/// <summary>
|
|
/// 绑定的值
|
|
/// </summary>
|
|
public object Value { get; }
|
|
|
|
/// <summary>
|
|
/// 绑定值特性构造函数
|
|
/// </summary>
|
|
/// <param name="value"></param>
|
|
public BindValueAttribute(object value)
|
|
{
|
|
Value = value;
|
|
}
|
|
}
|
|
|
|
}
|