Files
SabreTools/SabreTools.Core/MappingAttribute.cs
2024-10-19 23:17:37 -04:00

24 lines
557 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; }
/// <summary>
/// Constructor
/// </summary>
public MappingAttribute(params string[] mappings)
{
Mappings = mappings;
}
}
}