how to get first and last character from a string C#
how to get first and last character from a string C#
Solution
public static string FirstLast(string word)
{
return word[0] + "..." + word[word.Length - 1];
}
Share This with your friend by choosing any social account