switch statement - Select Case on an object's type in VB.NET - Stack Overflow

switch statement - Select Case on an object's type in VB.NET - Stack Overflow

瀏覽:597
日期:2024-05-12
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?...看更多