Quantcast
Channel: Switch issue?
Viewing all articles
Browse latest Browse all 3

Switch issue?

$
0
0

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 don't have a custom enum handy, you can try it out with something like HttpStatusCode.)
Tim

Viewing all articles
Browse latest Browse all 3

Trending Articles



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