fork download
  1. using System;
  2. using Newtonsoft;
  3.  
  4. public class Test
  5. {
  6. public enum ManufacturerCampaignServingPages
  7. {
  8. Mobile_Model_Page = 1,
  9. Desktop_Model_Page = 2,
  10. Mobile_DealerPriceQuote = 3,
  11. Desktop_DealerPriceQuote = 4,
  12. Mobile_PriceInCity = 5,
  13. Desktop_PriceInCity = 6
  14. }
  15.  
  16. public static void Main()
  17. {
  18. ManufacturerCampaignServingPages[] x = new ManufacturerCampaignServingPages[]{ ManufacturerCampaignServingPages.Mobile_Model_Page, ManufacturerCampaignServingPages.Mobile_DealerPriceQuote, ManufacturerCampaignServingPages.Mobile_PriceInCity };
  19. Console.WriteLine( Newtonsoft.Json.JsonConvert.SerializeObject(x) );
  20. }
  21. }
Compilation error #stdin compilation error #stdout 0.02s 16436KB
stdin
Standard input is empty
compilation info
prog.cs(2,7): error CS0246: The type or namespace name `Newtonsoft' could not be found. Are you missing an assembly reference?
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty