Answers for "use var instead of string c#"

C#
6

c# write variable in string

int age = 22;

Console.WriteLine($"Age: {age}");
Posted by: Guest on July-03-2020
1

C# using variables inside strings

string name = "John";
string result = $"Hello {name}";
Posted by: Guest on April-24-2021

C# Answers by Framework

Browse Popular Code Answers by Language