I'm new to C# and I'm trying to use the switch statement. Below is how I'm trying to use it but I'm getting a syntax error. I've been searching the net and MSDN and can't find an example of what I'm trying to do.
It doesn't like my case statement. Is this comparison possible? If so, what is the correct syntax?
Thanks,
Code:
diff = 784;
switch (diff)
{
case (diff > 365):
}
Thanks,