This method removes special characters and trims any white space from the left and right of the
string.
Namespace:
Abh.Core.Excel2k7.Utilities
Assembly:
Abh.Core.Excel2k7 (in Abh.Core.Excel2k7.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
public static string TrimAndRemoveSpecialCharacters(
string stringToClean
) |
| Visual Basic (Declaration) |
|---|
Public Shared Function TrimAndRemoveSpecialCharacters ( _
stringToClean As String _
) As String |
| Visual C++ |
|---|
public:
static String^ TrimAndRemoveSpecialCharacters(
String^ stringToClean
) |
Parameters
- stringToClean
- Type: System..::.String
Pass in the string to remove the special characters from.
Return Value
A string based on the passed in string without special characters and trimmed
of white space is returned.
See Also