System.Drawing: netstandard1.6 compatibility: String fixes (#4862)
authorFrederik Carlier <frederik.carlier@quamotion.mobi>
Mon, 15 May 2017 00:39:24 +0000 (02:39 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 15 May 2017 00:39:24 +0000 (02:39 +0200)
commitb6147c325e05d9a58357fe23b166ff51e83a9c4e
treec3c421b97cfcb5497c1e1c2cdad865400b00c401
parentf121eb73d4f268446c047d015303a80b71380b90
System.Drawing: netstandard1.6 compatibility: String fixes (#4862)

- ImageFormatConverter uses string.Compare to compare extensions for known file types. It uses CultureInfo.InvariantCulture,
  which is not available on netstandard1.6. Because all the extensions use ASCII-characters, StringCOmparsion.OrdinalIgnoreCase
  can be used, which is equivalent.
- Replace ToLower (CultureInfo.InvariantCulture) with .ToLowerInvariant ()
mcs/class/System.Drawing/System.Drawing/ColorTranslator.cs
mcs/class/System.Drawing/System.Drawing/ImageFormatConverter.cs