Answers for "variable to string c#"

C#
5

c# write variable in string

int age = 22;

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

c# string

// Part 1: create an array.
string[] array = new string[3];
array[0] = "orange";
array[1] = "peach";
array[2] = "apple";

// Part 2: call string.Join.
string result = string.Join(".", array);
Console.WriteLine($"RESULT: {result}");
Posted by: Guest on January-01-1970

C# Answers by Framework

Browse Popular Code Answers by Language