Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy.
The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct and please don't post ads.

Technical discussions are welcome, but if you need specific help please ask your question here.


 
GeneralRe: Does this language feature seem strange to anyone else? PinprotectorAspDotNetDev20-Mar-13 14:56 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberlewax0020-Mar-13 15:06 
GeneralRe: Does this language feature seem strange to anyone else? PinprotectorAspDotNetDev20-Mar-13 15:09 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberjschell21-Mar-13 11:04 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberlewax0021-Mar-13 11:27 
GeneralRe: Does this language feature seem strange to anyone else? PinmemberCésar de Souza22-Mar-13 1:43 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberlewax0022-Mar-13 11:58 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberenglebart22-Mar-13 3:26 
So it seems like in your case it would be safest to setup your enum like:
 
{None=0, Forward=1, Backward=2}
 
If you ever receive a None, you could email yourself a stacktrace.
Also, include a default case with similar behavior.
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberlewax0022-Mar-13 11:41 
GeneralRe: Does this language feature seem strange to anyone else? PinmemberRafagaX22-Mar-13 7:40 
GeneralRe: Does this language feature seem strange to anyone else? PinmemberChadwick Posey22-Mar-13 8:48 
GeneralRe: Does this language feature seem strange to anyone else? Pinmemberlewax0022-Mar-13 11:45 
GeneralReading Code PinmemberKyudos20-Mar-13 12:22 
GeneralRe: Reading Code [modified] Pinmemberwizardzz20-Mar-13 12:29 
GeneralRe: Reading Code PinprotectorAspDotNetDev20-Mar-13 12:40 
JokeRe: Reading Code PinmemberKyudos20-Mar-13 12:47 
GeneralRe: Reading Code Pinmemberlewax0020-Mar-13 12:42 
GeneralRe: Reading Code PinmemberCDP180220-Mar-13 12:39 
GeneralRe: Reading Code Pinmemberdusty_dex20-Mar-13 12:45 
JokeRe: Reading Code PinmemberKyudos20-Mar-13 12:48 
GeneralRe: Reading Code PinmemberPIEBALDconsult20-Mar-13 13:50 
GeneralRe: Reading Code PinmemberRob Grainger22-Mar-13 4:00 
GeneralRe: Reading Code PinmvpEddy Vluggen20-Mar-13 13:45 
GeneralRe: Reading Code Pinmember_Josh_20-Mar-13 14:31 
GeneralRe: Reading Code PinmemberPIEBALDconsult20-Mar-13 14:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150123.1 | Last Updated 27 Jan 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid