Meziantou's blog

Deep dives and practical tips about .NET, C#, and developer tooling

  • Home
  • Projects
  • Talks
  • Archives
  • About
  • Resume
  • 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

  • Reproducible Builds and Snapshot Testing: Handling File Paths in .NET
  • Snapshot testing in .NET with Meziantou.Framework.SnapshotTesting
  • Adding a Clone method to a C# record
  • Get a Unicode character name from a Rune in .NET
  • Safely passing extra arguments in GitHub Actions workflows using PowerShell

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.