Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# $ string

string color = blue;

// Both versions do the same thing.
Console.WriteLine("The sky is " + color);
Console.WriteLine($"The sky is {color}");
//Note the dollar ^sign    and ^curly^ brackets.
                  
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string
ADD COMMENT
Topic
Name
2+8 =