What is the .NET equivalent of StringBuffer in Java?

43,920

It's System.Text.StringBuilder. Note that in modern Java you'd use java.lang.StringBuilder too. (It's like StringBuffer, but without the synchronization - I can't remember the last time I wanted the synchronization of StringBuffer. Note that the .NET StringBuilder isn't thread-safe either, but again, I can't remember the last time I found that to be a problem.)

Share:
43,920
The Internet
Author by

The Internet

yea

Updated on August 27, 2022

Comments