dotnet
dotnet copied to clipboard
Guard.IsNotWhiteSpace gives exception on null value
Describe the bug Null check done in Guard.IsNotWhiteSpace while Guard.IsNotNullOrWhiteSpace is also available. Code of Guard.IsNotWhiteSpace has the same implementation as Guard.IsNotNullOrWhiteSpace. null does not feel equal to whitespace.
Regression No response
Steps to reproduce Call Guard.IsNotWhiteSpace(null), this gives a System.ArgumentException.
Screenshots No response
IDE and version VS 2017
IDE version No response
Nuget packages
- [ ] CommunityToolkit.Common
- [X] CommunityToolkit.Diagnostics
- [ ] CommunityToolkit.HighPerformance
- [ ] CommunityToolkit.Mvvm (aka MVVM Toolkit)
Nuget package version(s) 8.0.0
Additional context No response
Help us help you No, just wanted to report this