Skip to content

Commit

Permalink
Update Limitations to convert to StringBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Apr 4, 2022
1 parent 2b51a71 commit f4cc20a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/site/articles/known_limitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ The base of the `ValueStringBuilder` is a `ref struct`. With that there are cert
* Can't be used in `async` methods.
* Can't be used in methods which use the `yield` keyword

If not off this applies to your use case, you are good to go. Using `ref struct` is a trade for performance and less allocations in contrast to its use cases.
If not off this applies to your use case, you are good to go. Using `ref struct` is a trade for performance and less allocations in contrast to its use cases.

`ValueStringBuilder` offers the possibility to "convert" it into a "regular" `System.Text.StringBuilder`. Check out the following extension method via the <xref:LinkDotNet.StringBuilder.ValueStringBuilderExtensions>.

0 comments on commit f4cc20a

Please sign in to comment.