Files
QWERTYkez.OpenXmlProcessors/QWERTYkez.ExcelProcessor/Editors/NumberFormatPattern.cs
melekhin f5eb667973 0.9.1
2026-06-08 14:31:31 +07:00

20 lines
569 B
C#

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;
}