Simplify section parsing

This commit is contained in:
Adrian Conlon
2024-10-07 19:23:12 +01:00
parent 297f3b8dff
commit 8d9e603165
+2 -3
View File
@@ -55,12 +55,11 @@
this.ProcessAttributesOfProperties();
foreach (var entry in entries)
{
this.Parse(entry);
var (key, value) = entry;
this.Parse(key, value);
}
}
private void Parse(KeyValuePair<string, string> entry) => this.Parse(entry.Key, entry.Value);
private void Parse(string key, string value)
{
var propertyName = this.SectionProperties.GetPropertyNameFromEntryName(key);