mirror of
https://gitee.com/csharpui/CPF.git
synced 2026-06-29 22:45:57 +08:00
初始化
This commit is contained in:
22
CPF.Windows/Json/Attribute/AliasAttribute.cs
Normal file
22
CPF.Windows/Json/Attribute/AliasAttribute.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user