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()
|
||||
{
|
||||
var list = new List<string>();
|
||||
foreach (var name in _namesList)
|
||||
{
|
||||
list.Add(name);
|
||||
}
|
||||
foreach (var name in _namesMultiList)
|
||||
{
|
||||
list.Add(name);
|
||||
}
|
||||
var list = new List<string>(_namesList.Count + _namesMultiList.Count);
|
||||
list.AddRange(_namesList);
|
||||
list.AddRange(_namesMultiList);
|
||||
return list;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user