Use string.Create in ConvertFromUtf32 (#21409)
authorStephen Toub <stoub@microsoft.com>
Sat, 8 Dec 2018 04:49:29 +0000 (23:49 -0500)
committerJan Kotas <jkotas@microsoft.com>
Sat, 8 Dec 2018 04:49:29 +0000 (20:49 -0800)
commitca60cf7c507e73f3bb28de0f7781b201a66cf8d2
tree1ffb64711339392110d92b75fa96cb5c7d0d5752
parent1cba6f8c32a74a7e7e20fad004be6796a7282c94
Use string.Create in ConvertFromUtf32 (#21409)

* Use string.Create in ConvertFromUtf32

Removes the unsafe code from the method.  Also happens to make it a bit faster.

* Improve Rune.ToString performance
src/System.Private.CoreLib/shared/System/Char.cs
src/System.Private.CoreLib/shared/System/String.cs
src/System.Private.CoreLib/shared/System/Text/Rune.cs