Demo entry 6742909

Interpolation

   

Submitted by anonymous on May 19, 2018 at 20:19
Language: C#. Code size: 137 Bytes.

public void Print()
{
    string const GREETING = "Hello, ";
    var name = "World";
    Console.WriteLine($"{GREETING}, {name}");
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).