fork(26) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. private static bool Flag = false;
  6.  
  7. static void Main(string[] args)
  8. {
  9. var foo = 34;
  10. var bar = 42;
  11.  
  12. // Positional parameter notation (clunky and error prone)
  13. Console.WriteLine(String.Format("The foo is {0}, and the bar is {1}.", foo, bar));
  14.  
  15. // String Interpolation notation (without added brittleness)
  16. Console.WriteLine($"The foo is {foo}, and the bar is {bar}.");
  17. }
  18. }
Success #stdin #stdout 0.04s 23896KB
stdin
Standard input is empty
stdout
The foo is 34, and the bar is 42.
The foo is 34, and the bar is 42.