DateTimeFormat: Avoid intermediate char[] allocation (#6863)
authorJustin Van Patten <jvp@justinvp.com>
Wed, 24 Aug 2016 03:16:22 +0000 (20:16 -0700)
committerJan Kotas <jkotas@microsoft.com>
Wed, 24 Aug 2016 03:16:22 +0000 (20:16 -0700)
commitd014a8fab82d2ff70185ae6c29d2ae5a4074cc00
tree26d6bfb93c7e182f55fd2c3f3b252ecd482453cf
parentbc2bcc0cde64d43019cfab61d4cc7f8cf783173f
DateTimeFormat: Avoid intermediate char[] allocation (#6863)

An unnecessary intermediate char[] allocation can be avoided by calling
`new string(c, 1)` instead of `new string(new char[] { c })`.
src/mscorlib/src/System/Globalization/DateTimeFormat.cs