using System.Collections.Generic;
public override string ToString()
return $"{unit1}|{unit2}|{unit3}";
public static void Main()
var all = from u1 in Enumerable.Range(0, 260)
from u2 in Enumerable.Range(0, 2).Select(i => i == 1)
from u3 in Enumerable.Range(5, 241)
select new BlockData { unit1 = u1, unit2 = u2, unit3 = u3 };
Console.Write(string.Join(Environment.NewLine, all));