diff --git a/src/Microsoft.AspNet.Razor/TagHelpers/TagHelperDescriptorProvider.cs b/src/Microsoft.AspNet.Razor/TagHelpers/TagHelperDescriptorProvider.cs index f7e7bfc690..15a083b3a7 100644 --- a/src/Microsoft.AspNet.Razor/TagHelpers/TagHelperDescriptorProvider.cs +++ b/src/Microsoft.AspNet.Razor/TagHelpers/TagHelperDescriptorProvider.cs @@ -61,7 +61,8 @@ namespace Microsoft.AspNet.Razor.TagHelpers // If we have a tag name associated with the requested name, return the descriptors + // all of the catch-all descriptors. - if (_registrations.TryGetValue(tagName, out var matchingDescriptors)) + HashSet matchingDescriptors; + if (_registrations.TryGetValue(tagName, out matchingDescriptors)) { return matchingDescriptors.Concat(descriptors); }