You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can consistently create a stackoverflow exception when I run this code. Maybe it's not the most efficient, but it did cause an issue in our code, especially when the maximum value of i is generated at runtime.
class Program
{
static void Main(string[] args)
{
QueryContainer query = null;
for (int i = 0; i < 10000; i++)
{
query |= Query<Thing>.Term(f => f.ID, i);
}
}
}
class Thing
{
public int ID { get; set; }
}