fork download
  1. using System;
  2. using System.Collections.Generic;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. // your code goes here
  9. var x = new Product
  10. { Options = new OptionData[]
  11. { new OptionData // fist option
  12. { Id = Guid.NewGuid()
  13. }
  14. , new OptionData // second option
  15. { Id = Guid.NewGuid()
  16. }
  17. }
  18. };
  19. }
  20. }
  21.  
  22. public class Product
  23. {
  24. public string BrandDescription { get; set; }
  25.  
  26. public string StyleNumber { get; set; }
  27.  
  28. public IEnumerable<OptionData> Options { get; set; }
  29. }
  30.  
  31. public class OptionData
  32. {
  33. public Guid Id { get; set; }
  34.  
  35. public Colour PrimaryColour { get; set; }
  36.  
  37. public Colour SecondaryColour { get; set; }
  38. }
  39.  
  40. public class Colour
  41. {
  42. public string Name { get; set; }
  43. }
Success #stdin #stdout 0.01s 131520KB
stdin
Standard input is empty
stdout
Standard output is empty