String Trim Method
Jul 8th, 2010 | By Tamara Urry | Category: C# String Object, TutorialsThe source code for this demonstration is located in the zip file “WorkingWithStrings” Trim Spaces There are actually 3 methods associated with the string object available to trim leading and trailing space: TrimStart() | TrimEnd() | Trim() The results are self explanatory and the syntax is very simple. //declare variables to work with string strFirst [...]
