Files
serein-flow/Library/Attributes/BindValueAttribute.cs
fengjiayi 152077e9b5 1. 重新设计了Generate项目及相关特性的命名,避免与其他类型混淆。
2. 补充了部分注释。
3. 修改了删除容器节点时,容器内子节点未正确删除的问题。
2025-07-30 21:15:07 +08:00

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