Replace all Utils.IsNullOrEmpty(variable) with variable.IsNullOrEmpty()

This commit is contained in:
2dust
2025-03-05 19:44:49 +08:00
parent f3af831cf2
commit 71cc6d7a88
34 changed files with 153 additions and 162 deletions
@@ -272,7 +272,7 @@ namespace v2rayN.Desktop.Views
cmbHeaderType.Items.Clear();
var network = cmbNetwork.SelectedItem.ToString();
if (Utils.IsNullOrEmpty(network))
if (network.IsNullOrEmpty())
{
cmbHeaderType.Items.Add(Global.None);
return;
@@ -313,7 +313,7 @@ namespace v2rayN.Desktop.Views
private void SetTips()
{
var network = cmbNetwork.SelectedItem.ToString();
if (Utils.IsNullOrEmpty(network))
if (network.IsNullOrEmpty())
{
network = Global.DefaultNetwork;
}