using System.Collections.Generic;
using CodingSeb.ExpressionEvaluator;
public static void Main()
ExpressionEvaluator evaluator = new ExpressionEvaluator(new Dictionary<string, object>());
List<string> expressions = new List<string>()
"List(\"hello\", \"bye\").FluidAdd(\"test\").Count",
"List(\"hello\", \"bye\").Select(x => x.ToUpper()).ToList().FluentAdd(\"test\")[0]",
"List(\"hello\", \"bye\").Select(x => x.ToUpper()).ToList().FluentAdd(\"test\")[1]",
"List(\"hello\", \"bye\").Select(x => x.ToUpper()).ToList().FluentAdd(\"test\")[2]",
"List(\"hello\", \"bye\").Select(x => x.ToUpper()).ToList().FluentAdd(\"test\").FluidForEach(t => Console.WriteLine(t)).Count",
expressions.ForEach(expression =>
Console.WriteLine(expression);
Console.WriteLine(evaluator.Evaluate(expression));
Console.WriteLine(string.Empty);