mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-19 15:16:41 +00:00
Simplify section parsing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user