Geeks With Blogs

News My Blog has been MOVED to
Michael Freidgeim's OLD Blog My Blog has been MOVED to
            /// <summary>
            /// If lenght of the string is greater than max allowed, remove the end
            /// </summary>
            /// <param name="str"></param>
            /// <param name="maxLength"></param>
            /// <returns></returns>
            public static string TrimLength(string str, int maxLength)
                if (str.Length > maxLength)
                    str = str.Remove(maxLength);
                return str;
Posted on Monday, June 2, 2008 1:12 PM DotNetNuke | Back to top

Comments on this post: Helper String function to TrimLength

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Michael Freidgeim | Powered by: