mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
20 lines
440 B
C#
20 lines
440 B
C#
using System;
|
|
|
|
namespace Wabbajack.Common.Serialization.Json
|
|
{
|
|
/// <summary>
|
|
/// Defines the polymorphic name of this type when serialized via Json. This value will
|
|
/// be stored in the "_wjType" field.
|
|
/// </summary>
|
|
public class JsonNameAttribute : Attribute
|
|
{
|
|
public string Name { get; }
|
|
|
|
public JsonNameAttribute(string name)
|
|
{
|
|
Name = name;
|
|
}
|
|
|
|
}
|
|
}
|