Gets a substring of maximum length of a string.
A subtring starting at zero and ending a max characters of the string.
No exception is thrown if max is greater than the length of the string.
string text = MainUtil.Substring("Hello world", 6, true); // "Hel..."
string text = MainUtil.Substring("Hello world", 6, false); // "Hello "
MainUtil Class | Sitecore Namespace | MainUtil.Substring Overload List