Files
SabreTools.Serialization/SabreTools.Metadata/MappingAttribute.cs
2026-03-24 18:03:01 -04:00

17 lines
419 B
C#

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