New Challenge - Use string.Empty for validation
Closed this issue · 7 comments
kevmoens commented
String.Empty when compared will return true if it is null or an empty string ("")
Make a challenge returning a boolean value if the string passed in is equal to string.Empty
kevmoens commented
wolf-361 commented
ok !!
wolf-361 commented
there is also the IsNullOrEmpty(str) method
kevmoens commented
I think if they use either that would be sufficient.
On a side note for a new challenge, one could be made for checking string.IsNullOrWhitespace
…Sent from my iPhone
On Oct 16, 2022, at 8:12 PM, Luc Allaire ***@***.***> wrote:
there is also the IsNullOrEmpty(str) method
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
wolf-361 commented
Do you want me to open an issue for it then ?