blob: 76eab2973faf44c62018c43f42a98d531420062f [file] [log] [blame]
using System;
namespace AppsheetEpplus;
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++;
}
}