tubeshowcase●1,161,355 videos♡ My collection 0
← Learn to Code

Learn to Code03:25

C# string interpolation 💲

Bro Code ↗

From the creator

C# string interpolation tutorial example explained #C# #string #interpolation using System; namespace MyFirstProgram { class Program { static void Main(string[] args) { // string interpolation = allows us to insert variables into a string literal // precede a string literal with $ // {} are placeholders String firstName = "Bro"; String lastName = "Code"; int age = 21; Console.WriteLine($"Hello {firstName} {lastName}."); Console.WriteLine($"You are {age,-10} old."); Console.ReadKey(); } } }

Published 2021-07-03 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code