kevmoens/Ellabit

New Challenge - Use string.Empty for validation

Closed this issue · 7 comments

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

How is this different from challenge #45 Is the string empty?

Good point that #45 checks for "". Yet while working this past week checking if a string is equal to string.Empty we found it handles null. So we just need a new test on challenge #45

ok !!

there is also the IsNullOrEmpty(str) method

Do you want me to open an issue for it then ?