Why is this missing from C#?

By Roy Osherove

Markdown version

Historical article · Originally published February 18, 2003; technical details may be outdated.

Found out about a cool feature in VB.NET, but i can't seem to find something similar inC#.

In VB.NET you can create a Catch block that only catches the execption depending on a boolean statement. the syntax for this is pretty elegant: just write:

Catch ex as Exception When x>1

now why don't C# developers have this? i can see a lot of elegant possibilities with this feature..