using System.Collections.Generic;
public static void Main()
var expression = "return new List<int>() { 1, 2, 3, 4, 5 }.Where(x => x > 1 && x < 5)";
var list1a = Eval.Execute<List<int>>(expression);
FiddleHelper.WriteTable("1a. Hardcoding parameter value in the expression", list1a);
var expression = "return new List<int>() { 1, 2, 3, 4, 5 }.Where(x => x > "+ minValue +" && x < "+ maxValue +")";
var list1b = Eval.Execute<List<int>>(expression);
FiddleHelper.WriteTable("1b. Using string concatenation", list1b);
var expression = $"return new List<int>() {{ 1, 2, 3, 4, 5 }}.Where(x => x > {minValue} && x < {maxValue})";
var list1c = Eval.Execute<List<int>>(expression);
FiddleHelper.WriteTable("1c. Using [string interpolation](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/tokens/interpolated)", list1c);