|
1. Define values in a row
2. New initialization syntax
3. Use += &= operator
4. Use Return to halt method execution and return value to a calling function
5. No more On Error GoTo statements, but use Try...Catch...End Try
6. Encourage using Explicit Conversions: such as CType, also can use: CBool, CByte, CChar, CDate, CDbl, CDec, CInt, CLng, CObj, CShort, CSng and CStr.
7. Encourage using AndAlso to Replace using And, for example:
Above code always check the condition on both side of And, what if passing in target is Nothing, then it will raise an exception when checking: target.Name<> "".
Above code won't go to check target.Name<>"" if Not target Is Nothing is False already.
|