Code template implementation with C#
问题 When I need code template, I can use Python as follows. templateString = """ %s %s %s """ print templateString % ("a","b","c") How do I implement the equivalent with C#? I tried using System; class DoFile { static void Main(string[] args) { string templateString = " {0} {1} {2} "; Console.WriteLine(templateString, "a", "b", "c"); } } But I got dogen.cs(86,0): error CS1010: Newline in constant dogen.cs(87,0): error CS1010: Newline in constant dogen.cs(88,0): error CS1010: Newline in constant