below is in a async call and
if (args[0]).ToString() return null, first { will never be reached, and thread seem disapear or blocked.
if (args[0]).ToString() return "", all just behave normal.
if (string.IsNullOrEmpty( (args[0]).ToString()) )
{
}
If
args[0]is null,.ToString()will throw aNullReferenceExceptionbefore you get to callIsNullOrEmpty()on its result.