String Basics
Strings and Chars
char[] chars = { 'a', 'b', 'c', };
string str = "abc";
Console.WriteLine(chars[1]);
Console.WriteLine(str[1]);Properties of Strings
Length
string str = "This is a string";
int len = str.Length;
// len will be 16Null Check
Last updated