Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
User Journal

Journal Com2Kid's Journal: Now this oversight in C# is annoying

Simple switch based command line menu. If the user hits 'q', then System.Environment.Exit(0) is called.

Now obviously I do not need to bother worrying about any variable assignments here. Unused variables? Hah! The program has terminated.

But C# will not let me compile without assigning SOMETHING to those darned variables that have something assigned to them in every other case statement.

This discussion has been archived. No new comments can be posted.

Now this oversight in C# is annoying

Comments Filter:

What is wanted is not the will to believe, but the will to find out, which is the exact opposite. -- Bertrand Russell, "Skeptical Essays", 1928

Working...