Meziantou's blog

Blog about Microsoft technologies (.NET, ASP.NET Core, Blazor, EF Core, WPF, TypeScript, etc.)

  • Home
  • Projects
  • Talks
  • Archives
  • About
  • Contact

String.IsNullOrWhiteSpace

 02/11/2011
 
  • GĂ©rald BarrĂ©
 
  • .NET

A new feature introduced in .NET 4.0: String.IsNullOrWhiteSpace(string value). It complements the existing String.IsNullOrEmpty(string value). The name speaks for itself.

Even the base class library gets some nice additions 😃

Do you have a question or a suggestion about this post? Contact me!

Follow me:
Enjoy this blog?
  • Buy Me A Coffee
  • 💖 Sponsor on GitHub
Photo of Gérald Barré

Gérald Barré

aka. meziantou

Microsoft Most Valuable Professional (MVP)

Recent posts

  • Number comparison in .NET: ==, Equals, and IEEE 754 edge cases
  • You can use newline characters in URLs
  • Generate a Kiota client at build time from an ASP.NET Core OpenAPI file
  • New lines are more than \r and \n
  • New features and Roslyn analyzers for Meziantou.Framework.FullPath

Links

  • Dev Tool List
  • Async/await resources
  • .NET Multithreading resources
  • Visual Studio tips
  • Online tools
  • free-for.dev
Copyright © 2026 Gérald Barré - Use of this site constitutes acceptance of our Terms of use and Privacy policy.