Exemple #1
0
 private int TranslateColor(Color pixel)
 {
     return(_enum.GetKey(_colorDictionary[new TColor()
                                          {
                                              R = pixel.R, B = pixel.B, G = pixel.G
                                          }]));
 }
 private static TKey GetKeyIfValid(TEnum item)
 {
     item.EnsureValid();
     return(item.GetKey());
 }