mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
[NamesList] - Combine two collection using AddRange.
This commit is contained in:
parent
694376f154
commit
33f5155700
@ -49,15 +49,9 @@ namespace Nikse.SubtitleEdit.Core.Dictionaries
|
|||||||
|
|
||||||
public List<string> GetAllNames()
|
public List<string> GetAllNames()
|
||||||
{
|
{
|
||||||
var list = new List<string>();
|
var list = new List<string>(_namesList.Count + _namesMultiList.Count);
|
||||||
foreach (var name in _namesList)
|
list.AddRange(_namesList);
|
||||||
{
|
list.AddRange(_namesMultiList);
|
||||||
list.Add(name);
|
|
||||||
}
|
|
||||||
foreach (var name in _namesMultiList)
|
|
||||||
{
|
|
||||||
list.Add(name);
|
|
||||||
}
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user