How to Download Data as CSV in C# Blazor App

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));  
   };  
}  

 

Up Next
    Ebook Download
    View all
    Learn
    View all