We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b2f84f commit 21b0fa1Copy full SHA for 21b0fa1
1 file changed
Ramstack.Structures/Text/StringView.cs
@@ -737,8 +737,8 @@ public override bool Equals([NotNullWhen(true)] object? obj)
737
if (obj is null)
738
return _length == 0;
739
740
- if (obj is StringView)
741
- return Equals(this, Unsafe.Unbox<StringView>(obj));
+ if (obj is StringView view)
+ return Equals(this, view);
742
743
return obj is string s && Equals(s);
744
}
0 commit comments