mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-08 16:14:16 -04:00
21 lines
535 B
C#
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;
|
|
}
|
|
}
|
|
} |