namespace QWERTYkez.ExcelProcessor; public class NumberFormatPattern { public string Format { get; } internal int? Id { get; private set; } public NumberFormatPattern(string format, ushort id = 0) { Format = format ?? throw new ArgumentNullException(nameof(format)); if (id != 0) Id = id; } internal void Attach(ushort id) => Id = id; public override bool Equals(object? obj) => obj is NumberFormatPattern other && Format == other.Format; public override int GetHashCode() => Format?.GetHashCode() ?? 0; }