Attribute type that can be applied to fields or properties to store a localization key. It defines a single string property Value initialized from the constructor parameter.
using System;
namespace WackyLib.Attributes;
[AttributeUsage( AttributeTargets.Field | AttributeTargets.Property )]
public class LocalizedNameAttribute( string key ) : Attribute
{
public string Value { get; private set; } = key;
}