Mega Code Archive

 
Categories / C# / Data Types
 

Get Right Side Of String

//The MIT License (MIT) //http://arolibraries.codeplex.com/license using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace AroLibraries.ExtensionMethods.Strings {     public static class StringExt     {         public static string Ext_GetRightSideOfString(this string s, int count)         {             string newString = String.Empty;             if (s != null && count > 0)             {                 int startIndex = s.Length - count;                 if (startIndex > 0)                     newString = s.Substring(startIndex, count);                 else                     newString = s;             }             return newString;         }     } }