An attribute type named IdentAttribute that stores a string identifier for fields or properties. It exposes a Value property initialized from a constructor parameter.
using System;
namespace WackyLib.Attributes;
[AttributeUsage( AttributeTargets.Field | AttributeTargets.Property )]
public class IdentAttribute( string ident ) : Attribute
{
public string Value { get; private set; } = ident;
}