Click here to Skip to main content
13,299,898 members (68,898 online)

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

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, no programming questions and please don't post ads.
 
GeneralRe: Does this language feature seem strange to anyone else? Pin
Matthew Faithfull20-Mar-13 16:10
memberMatthew Faithfull20-Mar-13 16:10 
GeneralRe: Does this language feature seem strange to anyone else? Pin
Mike Winiberg21-Mar-13 23:14
memberMike Winiberg21-Mar-13 23:14 
GeneralRe: Does this language feature seem strange to anyone else? Pin
AspDotNetDev20-Mar-13 14:56
protectorAspDotNetDev20-Mar-13 14:56 
GeneralRe: Does this language feature seem strange to anyone else? Pin
lewax0020-Mar-13 15:06
memberlewax0020-Mar-13 15:06 
GeneralRe: Does this language feature seem strange to anyone else? Pin
AspDotNetDev20-Mar-13 15:09
protectorAspDotNetDev20-Mar-13 15:09 
GeneralRe: Does this language feature seem strange to anyone else? Pin
jschell21-Mar-13 11:04
memberjschell21-Mar-13 11:04 
GeneralRe: Does this language feature seem strange to anyone else? Pin
lewax0021-Mar-13 11:27
memberlewax0021-Mar-13 11:27 
GeneralRe: Does this language feature seem strange to anyone else? Pin
César de Souza22-Mar-13 1:43
memberCésar de Souza22-Mar-13 1:43 
Interesting! I suppose this is one of the reasons for the existence of the CA1008 code analysis rule.

Quote:

CA1008: Enums should have zero value[^]

Cause: An enumeration without an applied System.FlagsAttribute does not define a member that has a value of zero; or an enumeration that has an applied FlagsAttribute defines a member that has a value of zero but its name is not 'None', or the enumeration defines multiple zero-valued members.

Perhaps by specifying a default value with a "no action" behavior it would have been easier to spot this one, or at least it wouldn't lead on the weird behavior (you would have to explicitly handle or ignore the .None values).
Interested in Machine Learning in .NET? Check the Accord.NET Framework.
See also Sequence Classifiers in C# with Hidden Conditional Random Fields.

GeneralRe: Does this language feature seem strange to anyone else? Pin
lewax0022-Mar-13 11:58
memberlewax0022-Mar-13 11:58 
GeneralRe: Does this language feature seem strange to anyone else? Pin
englebart22-Mar-13 3:26
memberenglebart22-Mar-13 3:26 
GeneralRe: Does this language feature seem strange to anyone else? Pin
lewax0022-Mar-13 11:41
memberlewax0022-Mar-13 11:41 
GeneralRe: Does this language feature seem strange to anyone else? Pin
RafagaX22-Mar-13 7:40
memberRafagaX22-Mar-13 7:40 
GeneralRe: Does this language feature seem strange to anyone else? Pin
Chadwick Posey22-Mar-13 8:48
memberChadwick Posey22-Mar-13 8:48 
GeneralRe: Does this language feature seem strange to anyone else? Pin
lewax0022-Mar-13 11:45
memberlewax0022-Mar-13 11:45 
GeneralReading Code Pin
Kyudos20-Mar-13 12:22
memberKyudos20-Mar-13 12:22 
GeneralRe: Reading Code Pin
wizardzz20-Mar-13 12:29
memberwizardzz20-Mar-13 12:29 
GeneralRe: Reading Code Pin
AspDotNetDev20-Mar-13 12:40
protectorAspDotNetDev20-Mar-13 12:40 
JokeRe: Reading Code Pin
Kyudos20-Mar-13 12:47
memberKyudos20-Mar-13 12:47 
GeneralRe: Reading Code Pin
lewax0020-Mar-13 12:42
memberlewax0020-Mar-13 12:42 
GeneralRe: Reading Code Pin
CDP180220-Mar-13 12:39
memberCDP180220-Mar-13 12:39 
GeneralRe: Reading Code Pin
dusty_dex20-Mar-13 12:45
memberdusty_dex20-Mar-13 12:45 
JokeRe: Reading Code Pin
Kyudos20-Mar-13 12:48
memberKyudos20-Mar-13 12:48 
GeneralRe: Reading Code Pin
PIEBALDconsult20-Mar-13 13:50
memberPIEBALDconsult20-Mar-13 13:50 
GeneralRe: Reading Code Pin
Rob Grainger22-Mar-13 4:00
memberRob Grainger22-Mar-13 4:00 
GeneralRe: Reading Code Pin
Eddy Vluggen20-Mar-13 13:45
mvpEddy Vluggen20-Mar-13 13:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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 |
Web01 | 2.8.171207.1 | Last Updated 17 Dec 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid