Geeks With Blogs
Bunch's Blog One day I'll have a catchy subtitle, one day

If nobody else but me reads this that is OK, this is just something I forget from time to time when working in VB.Net. To short circuit an expression the && or || operators in many other languagesĀ are AndAlso or OrElse in VB.Net.

Two really simple examples:

If a > b AndAlso a < c Then

If a > b OrElse a > c Then

Technorati Tags:
Posted on Monday, May 2, 2011 11:47 AM | Back to top

Comments on this post: Short Circuiting Forgetfulness in VB.Net

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Bunch | Powered by: