WikiFunctions.Tools.FirstChars C# (CSharp) Method

FirstChars() public static method

Returns substring at the start of a given string
public static FirstChars ( string str, int count ) : string
str string String to process
count int Number of chars at the beginning of str to process
return string
        public static string FirstChars(string str, int count)
        {
            return (str.Length <= count) ? str : str.Substring(0, count);
        }
Tools