mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-06 06:11:45 +00:00
17 lines
419 B
C#
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;
|
|
}
|
|
}
|