Alex Rivera | Logout

What is the .NET equivalent of StringBuffer in Java?

Asked 2012-08-15T21:45:01.353
44

What is the .NET equivalent of java.lang.StringBuffer?

Edit
Report

1 Answer

85

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.)

answered 2012-08-15T21:46:00.127

Your Answer