Just use a single bar, this will evaluated both arguments regardless of the outcome of the first result.
if(txtName.Text.xyz() | txtLastName.Text.xyz()) { }
You can also do the same with AND, i.e. You can replace &&
with a single ampersand to get the same affect as above:
if(txtName.Text.xyz() & txtLastName.Text.xyz()) { } // Both sides will be called
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…