October 2008 Archive

Saving processor time AndAlso writing tidier code, OrElse!

Every once in a while, you stumble across something new and you wonder how you ever survived before you found it. This happened to me most recently when I came across the AndAlso and OrElse operators in VB.NET.

The official description of the AndAlso operator from Microsoft is that it "Performs short-circuiting logical conjunction on two expressions".

What does this mean? The 'logical conjunction on two expressions' means that it basically performs the same task as a standard logical 'And':

continue reading >
9 October