Forums - C# Corner

Forum guidelines
Manas Sahu

Manas Sahu

  • 1.7k
  • 114
  • 1.8k

What is wrong in this code

May 29 2019 11:36 PM
What is wrong in this code, my manager asking what if function failed. what I have missed here.its in vb.net. :(
 
Private Function IsListedUser() As Boolean
If Not String.IsNullOrEmpty(MyNeo.SessionData.Accessor.CurrentAccountDID) Then
If (Not String.IsNullOrEmpty(MyNeo.SessionData.CBSessionUser.UserDID) AndAlso SettingControl.GetString("sUserDIDPreferenceUsers").Contains(MyNeo.SessionData.CBSessionUser.UserDID)) OrElse _
(SettingControl.GetBoolean("bHideWhiteListedUserWS", False) AndAlso IsAccountWhiteListed(MyNeo.SessionData.Accessor.CurrentAccountDID)) Then
Return True
End If
End If
End Function

Answers (1)