經安全檢測,此網站為安全網站,請放心前往原始網址!

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

網址安全性掃描由 google 提供