public static IList<ExpressionResult> LoadExpressionResults(string filename) { var lines = File.ReadAllLines(filename); IList<ExpressionResult> list = new List<ExpressionResult>(); ExpressionResult result = null; foreach (var line in lines) { if (result == null) result = new ExpressionResult(line); else if (!string.IsNullOrEmpty(line)) if (line.StartsWith("-")) { list.Add(result); result = null; } else result.AddCompiledLine(line); } if (result != null) list.Add(result); return list; }