Windows Phone Developers

Saturday, February 13, 2010

How to Check if a Character is a WhiteSpace using C# (.NET)

Check if the character is white-space

This can be done using IsWhiteSpace Method in C#/VB.NET as follows



public void check_whitespace()
{
string sample = " StartsWith";
MessageBox.Show(Char.IsWhiteSpace(sample, 0).ToString ());
}
Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon

No comments:

Post a Comment

kbAlertz.com :: Visual Studio 2005

kbAlertz.com :: Visual Studio 2008

kbAlertz.com :: Visual Basic 2005