mirror of
https://github.com/kwsch/NHSE.git
synced 2026-10-02 06:46:36 -05:00
@@ -54,8 +54,12 @@ public List<ComboItem> CreateItemDataSource(IReadOnlyCollection<KeyValuePair<ush
|
||||
var map = new Dictionary<string, string>(arr.Count);
|
||||
foreach (var kvp in arr)
|
||||
{
|
||||
var split = kvp.Split('\t');
|
||||
map.Add(split[0], split[1]);
|
||||
var index = kvp.IndexOf('\t');
|
||||
if (index < 0)
|
||||
continue;
|
||||
var abbrev = kvp.Substring(0, index);
|
||||
var name = kvp.Substring(index + 1);
|
||||
map.Add(abbrev, name);
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user