Click here to Skip to main content
12,630,949 members (32,614 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
lewax0020-Mar-13 15:11
memberlewax0020-Mar-13 15:11 
GeneralRe: Does this language feature seem strange to anyone else? Pin
PIEBALDconsult20-Mar-13 15:17
memberPIEBALDconsult20-Mar-13 15:17 
GeneralRe: Does this language feature seem strange to anyone else? Pin
Matthew Faithfull20-Mar-13 15:10
memberMatthew Faithfull20-Mar-13 15:10 
GeneralRe: Does this language feature seem strange to anyone else? Pin
lewax0020-Mar-13 15:13
memberlewax0020-Mar-13 15:13 
GeneralRe: Does this language feature seem strange to anyone else? Pin
Matthew Faithfull20-Mar-13 15:29
memberMatthew Faithfull20-Mar-13 15:29 
GeneralRe: Does this language feature seem strange to anyone else? Pin
lewax0020-Mar-13 15:39
memberlewax0020-Mar-13 15:39 
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 
GeneralRe: Reading Code Pin
_Josh_20-Mar-13 14:31
member_Josh_20-Mar-13 14:31 
GeneralRe: Reading Code Pin
PIEBALDconsult20-Mar-13 14:35
memberPIEBALDconsult20-Mar-13 14:35 
GeneralRe: Reading Code Pin
Kyudos20-Mar-13 18:24
memberKyudos20-Mar-13 18:24 
JokeRe: Reading Code Pin
Vivic20-Mar-13 18:44
memberVivic20-Mar-13 18:44 
GeneralRe: Reading Code Pin
Nagy Vilmos20-Mar-13 22:09
memberNagy Vilmos20-Mar-13 22:09 
GeneralRe: Reading Code Pin
Matthew Faithfull20-Mar-13 14:46
memberMatthew Faithfull20-Mar-13 14:46 
GeneralRe: Reading Code Pin
Kyudos20-Mar-13 18:36
memberKyudos20-Mar-13 18:36 
GeneralRe: Reading Code Pin
Matthew Faithfull21-Mar-13 1:10
memberMatthew Faithfull21-Mar-13 1:10 
GeneralRe: Reading Code Pin
Super Lloyd20-Mar-13 15:14
memberSuper Lloyd20-Mar-13 15:14 
GeneralRe: Reading Code Pin
d@nish 20-Mar-13 18:24
member d@nish 20-Mar-13 18:24 
GeneralRe: Reading Code Pin
Kyudos20-Mar-13 18:39
memberKyudos20-Mar-13 18:39 
GeneralRe: Reading Code Pin
d@nish 20-Mar-13 20:27
member d@nish 20-Mar-13 20:27 
GeneralRe: Reading Code Pin
Richard MacCutchan21-Mar-13 0:05
mvpRichard MacCutchan21-Mar-13 0:05 
GeneralRe: Reading Code Pin
Mark_Wallace21-Mar-13 0:24
memberMark_Wallace21-Mar-13 0:24 
GeneralRe: Reading Code Pin
Brady Kelly21-Mar-13 0:55
memberBrady Kelly21-Mar-13 0:55 
GeneralRIP Chuck Norris' beard Pin
Pete O'Hanlon20-Mar-13 12:07
protectorPete O'Hanlon20-Mar-13 12:07 
GeneralRe: RIP Chuck Norris' beard Pin
wizardzz20-Mar-13 12:21
memberwizardzz20-Mar-13 12:21 
GeneralRe: RIP Chuck Norris' beard Pin
mark merrens20-Mar-13 13:02
membermark merrens20-Mar-13 13:02 
GeneralRe: RIP Chuck Norris' beard Pin
Mike Hankey20-Mar-13 14:50
memberMike Hankey20-Mar-13 14:50 

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 | Mobile
Web01 | 2.8.161205.3 | Last Updated 8 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid