blob: d1a39f4ddad1fcb2ac09135fe9ddbe74c2ced96f [file] [log] [blame]
using System;
namespace OfficeOpenXml.FormulaParsing.Utilities;
public class IntegerIdProvider : IdProvider {
private int _lastId = int.MinValue;
public override object NewId() {
if (_lastId >= int.MaxValue) {
throw new InvalidOperationException("IdProvider run out of id:s");
}
return _lastId++;
}
}