Skip to content

Commit f9c0946

Browse files
committed
- Set uinitial lookupNames capacity to 2 since there won't be more than 2
1 parent c830aad commit f9c0946

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controls/src/Xaml/XmlTypeXamlExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static class XmlTypeXamlExtensions
6060
lookupAssemblies.Add(new XmlnsDefinitionAttribute(namespaceURI, ns) { AssemblyName = asmstring });
6161
}
6262

63-
var lookupNames = new List<string>();
63+
var lookupNames = new List<string>(capacity: 2);
6464
lookupNames.Add(elementName);
6565
if (elementName != "DataTemplate" && !elementName.EndsWith("Extension", StringComparison.Ordinal))
6666
lookupNames.Add(elementName + "Extension");

0 commit comments

Comments
 (0)