private static RGBColor ExecuteOldSwitch(PrimaryColor color) { switch (color) { case PrimaryColor.Red: return new RGBColor(0xFF, 0x00, 0x00); case PrimaryColor.Green: return new RGBColor(0x00, 0xFF, 0x00); case PrimaryColor.Blue: return new RGBColor(0x00, 0x00, 0xFF); default: throw new ArgumentException(message: "invalid color", paramName: nameof(color)); }; }
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: