Skip to content

Commit

Permalink
simplify worksheets
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean McBeth committed Sep 19, 2023
1 parent cd075a3 commit d969267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Juniper.Root/Xml/XmlSpreadsheet2003.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ public static XmlSpreadsheet2003 Load(FileInfo file)

public string Name { get; }

public Dictionary<string, Worksheet> Worksheets { get; }
public Worksheet[] Worksheets { get; }

private XmlSpreadsheet2003(string name, XElement root)
{
Name = name;
Worksheets = root.Elements(WORKSHEET)
.Select(e => new Worksheet(e))
.ToDictionary(s => s.Name);
.ToArray();
}

public class Worksheet
Expand Down

0 comments on commit d969267

Please sign in to comment.