Code Inspection: Use 'String.IsNullOrEmpty'
Last modified: 21 July 2022tip
Consider the following code snippet:
The above is quite common, and because of this, the String
class has the IsNullOrEmpty()
method that does the same check as above. Consequently, ReSharper will offer to change your code to use it.