22 lines
510 B
C#
22 lines
510 B
C#
|
namespace RotaryHeart.Lib.SerializableDictionary
|
|||
|
{
|
|||
|
[System.AttributeUsage(System.AttributeTargets.Field)]
|
|||
|
public class IDAttribute : System.Attribute
|
|||
|
{
|
|||
|
private string _id;
|
|||
|
|
|||
|
public string Id
|
|||
|
{
|
|||
|
get { return _id; }
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Serializable field name for the property id
|
|||
|
/// </summary>
|
|||
|
/// <param name="id">Field name</param>
|
|||
|
public IDAttribute(string id)
|
|||
|
{
|
|||
|
_id = id;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|