namespace ApiTemplate
{
    using System.Reflection;

    public record AssemblyInformation(string Product, string Description, string Version)
    {
        public static readonly AssemblyInformation Current = new(typeof(AssemblyInformation).Assembly);

        public AssemblyInformation(Assembly assembly)
            : this(
                assembly.GetCustomAttribute<AssemblyProductAttribute>()!.Product,
                assembly.GetCustomAttribute<AssemblyDescriptionAttribute>()!.Description,
                assembly.GetCustomAttribute<AssemblyFileVersionAttribute>()!.Version)
        {
        }
    }
}

namespace ApiTemplate
{
    using System.Reflection;

    public record class AssemblyInformation(string Product, string Description, string Version)
    {
        public static readonly AssemblyInformation Current = new(typeof(AssemblyInformation).Assembly);

        public AssemblyInformation(Assembly assembly)
            : this(
                assembly.GetCustomAttribute<AssemblyProductAttribute>()!.Product,
                assembly.GetCustomAttribute<AssemblyDescriptionAttribute>()!.Description,
                assembly.GetCustomAttribute<AssemblyFileVersionAttribute>()!.Version)
        {
        }
    }
}

Switch from record to record class
Switch from record to record class
