This keeps me wondering why Guid in .NET does not have IsNullOrEmpty() method (where empty means all zeros)
I need this at several places in my ASP.NET MVC code when writing the REST API.
Or am I missing something because nobody on the Internet has asked for the same?
Guidis a value type, so a variable of typeGuidcan’t be null to start with. If you want to know if it’s the same as the empty guid, you can just use: