↧
Switch issue?
In the Switch<T> designer, how do I specify the case value as enum type like above example? You can use enum values, as long as you use Switch<MyEnum> and not Switch<int>. (If you...
View ArticleSwitch issue?
Hi TJ,I think even in .NET world you can have Constants expression in "Case value"int caseSwitch = 1; switch (caseSwitch) { case 1: Console.WriteLine("Case 1"); break; case 2: Console.WriteLine("Case...
View ArticleSwitch issue?
Hello,For example,switch(x) { case (int)MyEnum.Blue: break; case (int)MyEnum.Yellow: break;}I found there is Switch<T> activity...however, for "case value", I wasn't able to type...
View Article