Visual Basic Blog

A group blog from members of the VB team

VB Catch … When: Why so special?

The VB Catch syntax has a unique feature: When.  It allows users to filter expressions based on something other than their type.  Any arbitrary code can enter a When block to decide whether or not to handle an Exception. Newsgroups often ask, "Why's this so special? I could effectively get the same behavior out of C# by doing the ...

Feedback usabilla icon