2016-11-12 19:02:48 +03:00

50 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SonicAudioLib.CriMw.Serialization
{
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false)]
public class CriFieldAttribute : Attribute
{
private string fieldName;
private ushort order = ushort.MaxValue;
public string FieldName
{
get
{
return fieldName;
}
}
public ushort Order
{
get
{
return order;
}
}
public CriFieldAttribute(ushort order)
{
this.order = order;
}
public CriFieldAttribute(string fieldName)
{
this.fieldName = fieldName;
}
public CriFieldAttribute(string fieldName, ushort order)
{
this.fieldName = fieldName;
this.order = order;
}
public CriFieldAttribute() { }
}
}