thank you for looking at my question, to verify what i mean
Console.WriteLine($"Hello {variable}");
I am curious to the effect that the $ has on the output from Console.WriteLine
thank you for looking at my question, to verify what i mean
Console.WriteLine($"Hello {variable}");
I am curious to the effect that the $ has on the output from Console.WriteLine
Console.WriteLine($"Hello {variable}");
Is I think equal to:
Console.WriteLine(string.Format("Hello {0}", variable));
It just moves the parameter into the index position as if you were formatting it.
It is a new feature to use in addition to string.Format
It's called Interpolated Strings
© 2022 - 2024 — McMap. All rights reserved.