fork download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. Console.WriteLine(new cores(1, 0, 0));
  8. }
  9.  
  10. struct cores
  11. {
  12. int r, g, b;
  13.  
  14. public cores(int r, int g, int b)
  15. {
  16. this.r = r;
  17. this.g = g;
  18. this.b = b;
  19. }
  20.  
  21. public override string ToString() {
  22. return $"R: {r} - G: {g} - B: {b}";
  23. }
  24. }
  25. }
Success #stdin #stdout 0.01s 131648KB
stdin
Standard input is empty
stdout
R: 1 - G: 0 - B: 0