Arrays Names and ArgbValues were not in line

Number of elements in Names and ArgbValues must be the same. Otherwise an IndexOutOfRangeException will be thrown either in ArgbByName or NameByArgb.
This commit is contained in:
PaulBol 2019-01-15 15:05:42 +01:00 коммит произвёл Marek Safar
Родитель e52a39108e
Коммит d6809aec2f
1 изменённых файлов: 10 добавлений и 3 удалений

Просмотреть файл

@ -31,11 +31,11 @@
//
using Foundation;
using System.Drawing.Mac;
using System.Collections.Generic;
using System.Collections.Generic;
namespace System.Drawing {
internal static partial class KnownColors
internal static partial class KnownColors
{
static internal uint[] ArgbValues = new uint[] {
0x00000000, /* 000 - Empty */
@ -384,6 +384,13 @@ namespace System.Drawing {
"WhiteSmoke",
"Yellow",
"YellowGreen",
"ButtonFace",
"ButtonHighlight",
"ButtonShadow",
"GradientActiveCaption",
"GradientInactiveCaption",
"MenuBar",
"MenuHighlight"
};
static Dictionary<String, uint> argbByName = null;