Replace IsNullOrEmpty - prodot/ReCommended-Extension GitHub Wiki

Allows to replace string.IsNullOrEmpty(text) (where text represents a string expression) with equivalent expressions that are more readable or using modern language features. The context action doesn't make any suggestions if the current language version doesn't support the replacement.

Suggested replacements:

  • text is null or ""
  • text is not { } or ""
  • text is not { Length: > 0 }
  • text is null or []
  • text is not { } or []
  • text is not [_, ..]
⚠️ **GitHub.com Fallback** ⚠️