// Collection of code snippets by Arne Vajhøj // (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) using System; namespace E { public class Program { public static void Dump(string s) { Console.WriteLine(nameof(s) + " = " + s); } public static void Main(string[] args) { String sv = "ABC"; Console.WriteLine(nameof(sv) + " = " + sv); Dump(sv); } } }