#IgnoreWarnings: 16, 10, 14, 15
I prefer to put it after the code line:comment 'ignore In front of the line (in line with it)
There is no problem per se. I code like this (a bit out of context, but you will get the idea):Still, I think the #IgnoreWarnings should work. Maybe it doesn't for 2 as this is a rather severe thing and can cause all kind of craches. You should not ignore this warning and solve the problem.
Public Sub getUserByUsername(username As String) As User Dim u As User = dbCore.GetObjectByUniqueColumnValue("users", "username", username) If u.IsInitialized Then Return u Else Dim ex As ExceptionEx ex.Initialize("User not found") ex.Throw End If End Sub