fork download
  1. using static System.Console;
  2.  
  3. public static class Program {
  4. const string interpolado = "{0}";
  5.  
  6. public static void Main (string [] args) {
  7. var firstName = "fred";
  8. WriteLine(interpolado, firstName);
  9. var texto = string.Format(interpolado, firstName);
  10. WriteLine(texto);
  11. }
  12. }
  13.  
  14. //https://pt.stackoverflow.com/q/136458/101
Success #stdin #stdout 0.02s 15872KB
stdin
Standard input is empty
stdout
fred
fred