C# Eval - Custom Syntax - Operators - Array Implicit `..`

CSharp · Console

/Program.cs

// C# Eval Expression
// Doc: https://eval-expression.net/custom-syntax

// @nuget: Z.Expressions.Eval

using System;
using System.Collections.Generic;
using Z.Expressions;
			
public class Program
{
	public static void Main()
	{
		var result = Eval.Execute<List<int>>("var list = new List<int>() { 1, 2..100 };");
									   
		FiddleHelper.WriteTable(result);
	}
}
;