blob: 5b1b0b12763ec47e73df0f08476e0e5ed5983eeb [file] [log] [blame]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
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++;
}
}
}