Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

insert variables into a string C#

// For Console.WriteLine() and Console.Write() do...

string var0 = "one";
string var1 = "two";
Console.WriteLine("{0} and {1}", var0, var1);

/* Outputs:

one and two
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #variables #string
ADD COMMENT
Topic
Name
8+9 =