CPF/CPF.Windows/Json/Attribute/AliasAttribute.cs
2023-11-21 23:05:03 +08:00

23 lines
587 B
C#

using System;
namespace CPF.Windows.Json
{
/// <summary>
/// 别名,标记于字段或属性上的特性
/// Alias,Characteristics marked on fields or property
/// </summary>
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
public class AliasAttribute : Attribute
{
internal string _name { get; set; }
/// <summary>
/// Structural aliases
/// </summary>
/// <param name="name"></param>
public AliasAttribute(string name)
{
_name = name;
}
}
}