Created
May 15, 2011 10:09
-
-
Save habibillah/973024 to your computer and use it in GitHub Desktop.
Substring from right
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Utils | |
{ | |
public static string Right(string param, int length) | |
{ | |
string result = param.Substring((param.Length - length), length); | |
return result; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment