mirror of
https://github.com/blueskythlikesclouds/SonicAudioTools.git
synced 2025-02-11 16:33:03 +01:00
50 lines
1.0 KiB
C#
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() { }
|
|||
|
}
|
|||
|
}
|