1static string Right( string s, int count )
2{
3 string newString = String.Empty;
4 if (s != null && count > 0)
5 {
6 int startIndex = s.Length - count;
7 if (startIndex > 0)
8 newString = s.Substring( startIndex, count );
9 else
10 newString = s;
11 }
12 return newString;
13}