0
C# User input
In the lesson it has : string yourName; Console.WriteLine("What is your name?"); yourName = Console.ReadLine(); Console.WriteLine("Hello {0}", yourName); I wrote it in Visual Studio like so string yourName; Console.WriteLine("What is your name?"); yourName = Console.ReadLine(); Console.WriteLine(
quot;Hello {yourName}"); My question is will using $ interpolate string affect the code later on if there is alot and is it okay to do it like this?1 Réponse
+ 2
This is used since C#6 and its okay to do it like this.