Kyoo/Kyoo.Common/Models/Attributes/SerializeAttribute.cs
2021-03-13 00:49:12 +01:00

21 lines
535 B
C#

using System;
namespace Kyoo.Models.Attributes
{
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class SerializeIgnoreAttribute : Attribute {}
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class DeserializeIgnoreAttribute : Attribute {}
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field)]
public class SerializeAsAttribute : Attribute
{
public string Format { get; }
public SerializeAsAttribute(string format)
{
Format = format;
}
}
}