 |
switch statement - Select Case on an object's type in VB.NET - Stack Overflow
I'm not sure if this valid C#, but hopefully you get the idea. :) switch (msg.GetType()) { case ClassA: // blah case ClassB: // blah 2 case ClassC: // blah 3 } How would I switch on an object's type but using VB.NET's Select Case?
stackoverflow.com |
 |