mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 11:14:23 +00:00
24 lines
557 B
C#
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;
|
|
}
|
|
}
|
|
} |