Check null or White Space using String.IsNullOrWhiteSpace() function

Sourav.Kayal
Posted by Sourav.Kayal under C# category on | Points: 40 | Views : 1747
using System;
using System.Linq;
using System.Text;
using System.Collections;
using System.Data;
using System.Xml;
using System.IO;
using System.Diagnostics;
using System.Collections.Generic;
using System.Data.SqlClient;

namespace BlogProject
{
class Program
{
static void Main(string[] args)
{
String Value =" ";
if (String.IsNullOrWhiteSpace(Value))
{
Console.WriteLine("White Space");
}

Console.ReadLine();
}
}
}

Comments or Responses

Login to post response