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

Switch issue?

$
0
0

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 2");
        break;
    default:
        Console.WriteLine("Default case");
        break;
}

.

See this link here.

http://msdn.microsoft.com/en-us/library/06tc147t(v=vs.80).aspx

and same hold true for Switch Activity in workflow ... you may find This link useful.

Thanks,

Madhur

 


MB


Viewing all articles
Browse latest Browse all 3

Trending Articles



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