public RgbColor(int R, int G, int B)
{
#if DEBUG
if (R < 0 || R > 255)
{
throw new ArgumentOutOfRangeException("R", R, "R must corrospond to a byte value");
}
if (G < 0 || G > 255)
{
throw new ArgumentOutOfRangeException("G", G, "G must corrospond to a byte value");
}
if (B < 0 || B > 255)
{
throw new ArgumentOutOfRangeException("B", B, "B must corrospond to a byte value");
}
#endif
Red = R;
Green = G;
Blue = B;
}