Quantcast
Browsing latest articles
Browse All 3 View Live

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 Article


Switch 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 Article


Switch 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
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>