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 ());
}
Visual Studio .NET Tips and Tricks, VB.NET Code Samples, C# Code Snippets, ASP.NET Code Samples, .NET Tips and Tricks, C# Tips & Tricks, Visual Studio 2010, .NET Framework Code Samples, VB.NET Tips & Tricks
public void check_whitespace()
{
string sample = " StartsWith";
MessageBox.Show(Char.IsWhiteSpace(sample, 0).ToString ());
}
No comments:
Post a Comment