Avoid box allocation in TypeBuilder.DefineDataHelper (#6148)
authorJustin Van Patten <jvp@justinvp.com>
Thu, 7 Jul 2016 05:37:53 +0000 (22:37 -0700)
committerJan Kotas <jkotas@microsoft.com>
Thu, 7 Jul 2016 05:37:53 +0000 (07:37 +0200)
commit953d38321f817dffe18261ce77d508947ed4b4fb
tree202d66f19e4327893ecbb6b4e5f9bb941ad40933
parente6ca607e9dfa0718270aec74b9c9ff6ae3296f3c
Avoid box allocation in TypeBuilder.DefineDataHelper (#6148)

The current implementation calls `string.Concat(object, object)`, which
results in a box allocation.

Avoid the box allocation by calling `int.ToString()`, allowing
`string.Concat(string, string)` to be used.
src/mscorlib/src/System/Reflection/Emit/TypeBuilder.cs