src/JsonPropertyAttribute.cs
(完整代码) 885Busing System;
using System.Collections.Generic;
using System.Text;
namespace Rapidity.Json
{
/// <summary>
/// JsonProperty Settings
/// </summary>
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class JsonPropertyAttribute : Attribute
{
public JsonPropertyAttribute() { }
public JsonPropertyAttribute(string name)
{
this.Name = name;
}
public JsonPropertyAttribute(bool ignore)
{
this.Ignore = ignore;
}
/// <summary>
/// PropertyName
/// </summary>
public string Name { get; set; }
/// <summary>
/// 忽略当前属性
/// </summary>
public bool Ignore { get; set; }
/// <summary>
/// 排序号
/// </summary>
public int Sort { get; set; }
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
