String in c#
C# | Strings:
- The range of Unicode characters will be U+0000 to U+FFFF.The array of characters is also termed as the text.
- So the string is the representation of the text.
- A string is represented by class System.String. The “string” keyword is an alias for System.String class and instead of writing System.String one can use String which is a shorthand for System.String class.
- So string is an object of System.String class.
class Program
{
// What is string Example//
static void Main(string[] args)
{
string s1 = "WelCome To C#";
String s2 = "WTC#";
System.String s3 = "WelCome";
Console.WriteLine(s1+";"+s2 + ";"+s3);
Console.ReadLine();
}
}
No comments