Files
SabreTools/SabreTools.Core/MappingAttribute.cs
2023-04-19 17:35:20 -04:00

24 lines
575 B
C#

using System;
namespace SabreTools.Core
{
/// <summary>
/// Maps a set of strings to an enum value
/// </summary>
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public class MappingAttribute : Attribute
{
/// <summary>
/// Set of mapping strings
/// </summary>
public string[] Mappings { get; private set; }
/// <summary>
/// Constructor
/// </summary>
public MappingAttribute(params string[] mappings)
{
this.Mappings = mappings;
}
}
}