54    {
   56        {
   57            throw new ArgumentNullException("destinationType");
   58        }
   60        {
   62            {
   63                if (color == 
Color.Empty)
 
   64                {
   65                    return string.Empty;
   66                }
   68                {
   69                    return color.Name;
   70                }
   71                if (color.IsNamedColor)
   72                {
   73                    return "'" + color.Name + "'";
   74                }
   76                {
   78                }
   79                string separator = culture.TextInfo.ListSeparator + 
" ";
 
   81                int num = 0;
   83                if (color.A < byte.MaxValue)
   84                {
   85                    array = 
new string[4];
 
   87                }
   88                else
   89                {
   90                    array = 
new string[3];
 
   91                }
   96            }
   98            {
  101                if (color.IsEmpty)
  102                {
  104                }
  106                {
  108                }
  109                else if (color.A != byte.MaxValue)
  110                {
  112                    {
  117                    });
  118                    arguments = 
new object[4] { color.A, color.R, color.G, color.B };
 
  119                }
  120                else if (color.IsNamedColor)
  121                {
  123                    arguments = 
new object[1] { color.Name };
 
  124                }
  125                else
  126                {
  128                    {
  132                    });
  133                    arguments = 
new object[3] { color.R, color.G, color.B };
 
  134                }
  136                {
  138                }
  139                return null;
  140            }
  141        }
  143    }
static TypeConverter GetConverterTrimUnsafe([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] Type type)
 
static bool IsKnownNamedColor(string name)
 
static CultureInfo CurrentCulture