Mega Code Archive

 
Categories / C# Book / 01 Language Basics
 

0032 string type

To store an immutable sequence of unicode char, we can use string(System.String) type. C# uses double quote to wrap string literals. using System; class Program { static void Main(string[] args) { string str = "demo from rntsoft.com"; Console.WriteLine(str); } } The output: demo from rntsoft.com