CPF/CPF/Json/Attribute/IgnoreDefaultValueAttribute.cs
2023-12-28 08:50:27 +08:00

14 lines
476 B
C#

using System;
namespace CPF.Json
{
/// <summary>
/// 当被标记元素的值为默认值时,序列化时将忽略其元素
/// When the value of the tagged element is the default, its element is ignored when serialized
/// </summary>
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property | AttributeTargets.Class |
AttributeTargets.Struct)]
public class IgnoreDefaultValueAttribute : Attribute
{
}
}