EightBitNet/Fuse/Results.cs
Adrian Conlon 8dea5746c4 Tidy up stylecopy usage for the LR35902 set of libraries.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-21 13:11:00 +01:00

31 lines
795 B
C#

// <copyright file="Results.cs" company="Adrian Conlon">
// Copyright (c) Adrian Conlon. All rights reserved.
// </copyright>
namespace Fuse
{
using System.Collections.Generic;
public class Results
{
private readonly Lines lines;
public Results(string path) => this.lines = new Lines(path);
public Dictionary<string, Result> Container { get; } = new Dictionary<string, Result>();
public void Read() => this.lines.Read();
public void Parse()
{
while (!this.lines.EndOfFile)
{
var result = new Result();
if (result.TryParse(this.lines))
{
this.Container.Add(result.Description, result);
}
}
}
}
}