Get the right string up to length specified in the second parameter 'length' for the passed first parameter 'param' string

Posted by Niladri.Biswas under C# category on | Points: 40 | Views : 798
public static string Right(this string param, int length)
string result = param.Substring(param.Length - length, length);
return result;

Comments or Responses

Login to post response