Skip to content

Commit

Permalink
fix: Use Overload resolution for Span ctor (fixes #210)
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Jan 2, 2025
1 parent 76c7bba commit 438d414
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/LinkDotNet.StringBuilder/ValueStringBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public ValueStringBuilder()
/// </summary>
/// <param name="initialBuffer">Initial buffer for the string builder to begin with.</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
#if NET9_0_OR_GREATER
[OverloadResolutionPriority(1)]
#endif
public ValueStringBuilder(Span<char> initialBuffer)
{
bufferPosition = 0;
Expand Down

0 comments on commit 438d414

Please sign in to comment.