Remove StringBuilder from HebrewNumber formatting (#21122)
authorStephen Toub <stoub@microsoft.com>
Tue, 20 Nov 2018 20:59:37 +0000 (15:59 -0500)
committerGitHub <noreply@github.com>
Tue, 20 Nov 2018 20:59:37 +0000 (15:59 -0500)
commit5a0af055e4c39f4f49b7ff35141739dc3fda4f9f
tree8953c3679d569943b662e9ca4927fd479da59b04
parente80e04020c3281ec675817c4fff025a3e347353e
Remove StringBuilder from HebrewNumber formatting (#21122)

Rather than allocating a new StringBuilder, writing into that, getting its string, and then appending that string to another StringBuilder, we can just write directly to the original one.
src/System.Private.CoreLib/shared/System/Globalization/DateTimeFormat.cs
src/System.Private.CoreLib/shared/System/Globalization/HebrewNumber.cs