· i want to get a new string from the third character to the end of the string, e. g. The function checks the actual contents of the … Var s1 = new string(avoid newing things where possible); If omitting the second part … //the line you mentioned above was wrong because you are defining an array of length 10 ([10]), then defining an array of … Is there a way to get the first n number of characters from a string in c#? Use the string. equals(object other) function to compare strings, not the == operator. I have read this question to get first char of the string. Var s2 = a string, in typescript of type string;