Click here to Skip to main content
15,891,136 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: 2... Pin
Nish Nishant25-Aug-16 2:12
sitebuilderNish Nishant25-Aug-16 2:12 
GeneralRe: 2... Pin
Sander Rossel25-Aug-16 2:15
professionalSander Rossel25-Aug-16 2:15 
PraiseRe: 2... Pin
Jeremy Falcon25-Aug-16 12:51
professionalJeremy Falcon25-Aug-16 12:51 
GeneralRe: 2... Pin
Marc Clifton25-Aug-16 2:18
mvaMarc Clifton25-Aug-16 2:18 
GeneralRe: 2... Pin
Nish Nishant25-Aug-16 2:57
sitebuilderNish Nishant25-Aug-16 2:57 
GeneralRe: 2... Pin
Rage25-Aug-16 4:43
professionalRage25-Aug-16 4:43 
GeneralRe: 2... Pin
Nish Nishant25-Aug-16 4:49
sitebuilderNish Nishant25-Aug-16 4:49 
GeneralIs it me or is this a really weird VS bug? Pin
Sander Rossel25-Aug-16 1:21
professionalSander Rossel25-Aug-16 1:21 
So I got the following declaration in a class:
C#
public class ExpressionModel
{
    public static readonly IEnumerable<string> ConditionOperators = new[] { "eq", "neq", "gt", "gte", "lt", "lte", "between" };

    // ...
}
I'm using it in one place as follows:
C#
ExpressionModel.ConditionOperators.Contains(e.Operator)
It went well a couple of times and then I got a NullReferenceException on ExpressionModel.ConditionOperators... Unsure | :~

I'm not even sure how ConditionOperators could EVER be null (even if I tried)... Unsure | :~
Read my (free) ebook Object-Oriented Programming in C# Succinctly.
Visit my blog at Sander's bits - Writing the code you need.
Or read my articles here on CodeProject.
Simplicity is prerequisite for reliability.
— Edsger W. Dijkstra
Regards,
Sander

GeneralRe: Is it me or is this a really weird VS bug? Pin
phil.o25-Aug-16 1:27
professionalphil.o25-Aug-16 1:27 
GeneralRe: Is it me or is this a really weird VS bug? Pin
Sander Rossel25-Aug-16 1:33
professionalSander Rossel25-Aug-16 1:33 
GeneralRe: Is it me or is this a really weird VS bug? Pin
phil.o25-Aug-16 2:12
professionalphil.o25-Aug-16 2:12 
GeneralRe: Is it me or is this a really weird VS bug? Pin
Sander Rossel25-Aug-16 2:17
professionalSander Rossel25-Aug-16 2:17 
GeneralRe: Is it me or is this a really weird VS bug? Pin
phil.o25-Aug-16 2:20
professionalphil.o25-Aug-16 2:20 
GeneralRe: Is it me or is this a really weird VS bug? Pin
raddevus25-Aug-16 4:56
mvaraddevus25-Aug-16 4:56 
GeneralRe: Is it me or is this a really weird VS bug? Pin
Sander Rossel25-Aug-16 5:31
professionalSander Rossel25-Aug-16 5:31 
GeneralRe: Is it me or is this a really weird VS bug? Pin
raddevus25-Aug-16 8:27
mvaraddevus25-Aug-16 8:27 
GeneralRe: Is it me or is this a really weird VS bug? Pin
Sander Rossel25-Aug-16 22:13
professionalSander Rossel25-Aug-16 22:13 
GeneralRe: Is it me or is this a really weird VS bug? Pin
patbob25-Aug-16 5:39
patbob25-Aug-16 5:39 
GeneralRe: Is it me or is this a really weird VS bug? Pin
raddevus25-Aug-16 8:28
mvaraddevus25-Aug-16 8:28 
JokeRe: Is it me or is this a really weird VS bug? Pin
Marc Clifton25-Aug-16 1:40
mvaMarc Clifton25-Aug-16 1:40 
GeneralRe: Is it me or is this a really weird VS bug? Pin
#realJSOP25-Aug-16 1:54
mve#realJSOP25-Aug-16 1:54 
GeneralRe: Is it me or is this a really weird VS bug? Pin
Marc Clifton25-Aug-16 2:13
mvaMarc Clifton25-Aug-16 2:13 
GeneralRe: Is it me or is this a really weird VS bug? Pin
harold aptroot25-Aug-16 1:54
harold aptroot25-Aug-16 1:54 
GeneralRe: Is it me or is this a really weird VS bug? Pin
Sander Rossel25-Aug-16 2:08
professionalSander Rossel25-Aug-16 2:08 
GeneralRe: Is it me or is this a really weird VS bug? Pin
Dan Neely25-Aug-16 2:46
Dan Neely25-Aug-16 2:46 

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.