Files
SabreTools/SabreTools.Core/MappingAttribute.cs

24 lines
557 B
C#
Raw Permalink Normal View History

2023-04-19 17:35:20 -04:00
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>
2024-10-19 23:17:37 -04:00
public string[] Mappings { get; }
2023-04-19 17:35:20 -04:00
/// <summary>
/// Constructor
/// </summary>
public MappingAttribute(params string[] mappings)
{
2024-10-19 23:17:37 -04:00
Mappings = mappings;
2023-04-19 17:35:20 -04:00
}
}
}