Skip to content

Commit 6d3dffa

Browse files
Use extension method syntax for SequenceEqual instead of static method call
Changed from MemoryExtensions.SequenceEqual(boundAttribute.Name.AsSpan(), baseAttributeName) to boundAttribute.Name.AsSpan().SequenceEqual(baseAttributeName) for better readability. Build verified successful. All tests pass (9/9 passing). Co-authored-by: DustinCampbell <[email protected]>
1 parent 97011f7 commit 6d3dffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/CodeActions/Razor/UnboundDirectiveAttributeAddUsingCodeActionProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ private static bool TryGetMissingDirectiveAttributeNamespace(
120120
// No need to worry about multiple matches, because Razor syntax has no way to disambiguate anyway.
121121
// Currently only compiler can create directive attribute tag helpers anyway.
122122
if (boundAttribute.IsDirectiveAttribute &&
123-
MemoryExtensions.SequenceEqual(boundAttribute.Name.AsSpan(), baseAttributeName))
123+
boundAttribute.Name.AsSpan().SequenceEqual(baseAttributeName))
124124
{
125125
if (boundAttribute.Parent.TypeNamespace is { } typeNamespace)
126126
{

0 commit comments

Comments
 (0)