January 5, 2014 at 3:27 PM
—
Admin
Use the following extension method to remove the extra spaces ( in the middle ) from a desired string , its easy right :)
public static string RemoveWhiteSpace(this string mStr)
string mRet = mStr.Trim().Replace(" ", " ");
while (mRet.Contains(" "))
mRet = mRet.Replace(" ", " ");
3842f1de-b9b5-4824-bdad-67054deb3e35|0|.0|96d5b379-7e1d-4dac-a6ba-1e50db561b04
Posted in: .NET | IT
Tags: