public static void Main()
Console.WriteLine("-- there is no difference between string and String (capital S) in C#");
Console.WriteLine(str1.GetType().FullName);
Console.WriteLine(str2.GetType().FullName);
Console.WriteLine("-- String as char Array");
char[] chars = {'H','e','l','l','o'};
string strChars1 = new string(chars);
foreach (char c in strChars1)
Console.WriteLine("-- Special Characters - double quotes");
Console.WriteLine("This is a \"string\" in C#.");
Console.WriteLine("-- Special Characters - Escape Char");
Console.WriteLine("This is a \"string\" in C#.");
Console.WriteLine("xyzdef\\rabc");
Console.WriteLine("\\\\mypc\\ shared\\project");
Console.WriteLine("-- Special Characters - Escape Sequence");
Console.WriteLine(@"xyzdef\rabc");
Console.WriteLine(@"\\mypc\shared\project");
Console.WriteLine(@"test@test.com");
Console.WriteLine("-- Composite formatting");
Console.WriteLine("Hello, {0}! Today is {1}, it's {2:HH:mm} now.", name, date.DayOfWeek, date);