We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fb45a4 commit b626f16Copy full SHA for b626f16
src/Microsoft.DotNet.Wpf/src/System.Xaml/System/Windows/NameScope.cs
@@ -294,7 +294,7 @@ public ICollection<string> Keys
294
return null;
295
}
296
297
- var list = new List<string>();
+ var list = new List<string>(_nameMap.Keys.Count);
298
foreach (string key in _nameMap.Keys)
299
{
300
list.Add(key);
@@ -312,7 +312,7 @@ public ICollection<object> Values
312
313
314
315
- var list = new List<object>();
+ var list = new List<object>(_nameMap.Values.Count);
316
foreach (object value in _nameMap.Values)
317
318
list.Add(value);
0 commit comments