mirror of
https://github.com/Tribufu/ServerManagers
synced 2026-08-09 20:51:05 +00:00
Removal of ToArray()
This commit is contained in:
parent
9eb22da9e7
commit
9f5cf132f0
41 changed files with 184 additions and 189 deletions
|
|
@ -68,7 +68,7 @@ namespace ServerManagerTool.Common.Serialization
|
|||
Sections.Remove(section);
|
||||
}
|
||||
|
||||
public bool WriteSection(string sectionName, string[] keysValuePairs)
|
||||
public bool WriteSection(string sectionName, IEnumerable<string> keysValuePairs)
|
||||
{
|
||||
if (sectionName == null)
|
||||
return false;
|
||||
|
|
@ -186,7 +186,7 @@ namespace ServerManagerTool.Common.Serialization
|
|||
{
|
||||
result.AppendLine($"[{section.SectionName}]");
|
||||
|
||||
foreach (var keyString in section.KeysToStringArray())
|
||||
foreach (var keyString in section.KeysToStringEnumerable())
|
||||
{
|
||||
result.AppendLine(keyString);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue