So, I'm trying to develop an application on .NET 4.5. Just a quick question, in the following implementations, which are the most efficient (and flexible in terms of compatibility) implementation of the following cases:
Code:If String.IsNullOrWhiteSpace(txtPXFName.Text) _ Or String.IsNullOrWhiteSpace(txtPXMName.Text) _ ... End If If Trim(txtPXFName.text = "") _ Or Trim(txtPXFName.text = "") _ ... End IfAlso, are the following codes essentially the same?Code:blnAbFHR = If(rdoT4AbFHR1.Checked = True, True, False) If rdoT4AbFHR1.Checked = True Then blnAbFHR = True ElseIf rdoT4AbFHR2.Checked = True Then blnAbFHR = False End If
Code:If xx.Checked Then If xx.Checked = true Then




Reply With Quote