Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (condition1 && condition2 && condition3)
- {
- // Do something
- }
- if ((object != null) && (object.SomeFunc() != value))
- {
- // A bad way of checking (or so I thought)
- }
- if (object != null)
- {
- if (object.SomeFunc() != value)
- {
- // A much better and safer way
- }
- }
- // perfectly legal and quite a standard way to express in C++/C#
- if( x != null && x.Count > 0 ) ...
- // will fail in VB6 if x is Nothing.
- If x Is Not Nothing And x.Count > 0 Then ...
Add Comment
Please, Sign In to add comment