Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# add strings

string value = "cat ";
        
// Step 1: append a word to the string.
value += "and ";
Console.WriteLine(value);
        
// Step 2: append another word.
value += "dog";
Console.WriteLine(value);

//OUTPUT:
cat and 
cat and dog
Source by www.dotnetperls.com #
 
PREVIOUS NEXT
Tagged: #add #strings
ADD COMMENT
Topic
Name
2+8 =