Files
melekhin e373d4108a
All checks were successful
Publish NuGet packages / publish (push) Successful in 28s
many debugs
2026-06-19 15:06:40 +07:00

20 lines
561 B
C#

namespace QWERTYkez.ExcelProcessor;
public class NumberFormatPattern
{
public string Format { get; }
internal int? Id { get; 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;
}