wabbajack/Wabbajack.DTOs/JsonConverters/JsonAliasAttribute.cs

14 lines
299 B
C#
Raw Normal View History

2021-09-27 12:42:46 +00:00
using System;
2021-10-23 16:51:17 +00:00
namespace Wabbajack.DTOs.JsonConverters;
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
public class JsonAliasAttribute : Attribute
2021-09-27 12:42:46 +00:00
{
2021-10-23 16:51:17 +00:00
public JsonAliasAttribute(string alias)
2021-09-27 12:42:46 +00:00
{
2021-10-23 16:51:17 +00:00
Alias = alias;
2021-09-27 12:42:46 +00:00
}
2021-10-23 16:51:17 +00:00
public string Alias { get; }
2021-09-27 12:42:46 +00:00
}