Fix FontFamily.Name performance by using span and calling the interop code with char...
authorSantiago Fernandez Madero <safern@microsoft.com>
Thu, 28 Jun 2018 16:17:11 +0000 (09:17 -0700)
committerStephen Toub <stoub@microsoft.com>
Thu, 28 Jun 2018 16:17:11 +0000 (12:17 -0400)
commitb74ff8c45b9e6d5e23b209618064f738dae06eb4
tree39b39b160ddc6d0390da34a2ee699c5aa2254a91
parent1d65627eb005f60b1aa463af137414a0d67392fe
Fix FontFamily.Name performance by using span and calling the interop code with char pointer (dotnet/corefx#30705)

* Fix FontFamily.Name performance by using span and calling the interop
code with char pointer

* PR Feedback

* Remove added System.Memory reference

Commit migrated from https://github.com/dotnet/corefx/commit/5d9a3ccdbd1692568b3ea00b891dce9f326285b5
src/libraries/System.Drawing.Common/src/System.Drawing.Common.csproj
src/libraries/System.Drawing.Common/src/System/Drawing/FontFamily.cs
src/libraries/System.Drawing.Common/src/System/Drawing/GdiplusNative.cs