Only allocate StringBuilder for complex type names (#79325)
authorBen Adams <thundercat@illyriad.co.uk>
Wed, 7 Dec 2022 08:37:31 +0000 (08:37 +0000)
committerGitHub <noreply@github.com>
Wed, 7 Dec 2022 08:37:31 +0000 (09:37 +0100)
commita2fb6e22e2b17613699332c38bb2b42b70956fa8
tree5c6165095e6647cdef852ffce940c35c29a23c31
parent01163233763335de0a2c8d711cbf418e0c34bbf6
Only allocate StringBuilder for complex type names (#79325)

Co-authored-by: Stephen Toub <stoub@microsoft.com>
Resolves https://github.com/dotnet/runtime/issues/79317
src/libraries/Common/src/Extensions/TypeNameHelper/TypeNameHelper.cs