Derik Whittaker



Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at
Something odd about this code

Today I was trying to root out a bug when I noticed a little red ReSharper icon in my right hand gutter.  I took a look because I knew the code compiled, but according to ReSharper there was some buggy code.  So I clicked the icon to have a look.

Let me know if you see what is wrong with this (the code has been changed to protect the innocent) ......

Here is the 'odd' code 

Hey, at least there was not a 'default' block :(

Oh well, it is all good.

Till next time.

Posted 07-11-2007 6:56 PM by Derik Whittaker
Filed under:



wolnystrzelec wrote re: Something odd about this code
on 07-12-2007 4:47 AM

Hey! This is from my Class :) <joke /> <laugh />

I think that :

if ( true ) [

// do some crazy logic


is far better :) .

expresso wrote re: Something odd about this code
on 07-15-2007 11:03 PM

Resharper bogs down my system like you won't believe.  Since I cannot get a lousy extra gig of ram at my stupid ass new job, Resharper grinds VS 2005 to a halt and it IS resharper that is doing it.

Sure would be nice if that damn thing would be quicker or not run every frigging time I open VS 2005!

Derik Whittaker wrote re: Something odd about this code
on 07-16-2007 12:17 PM

Part of the reason that it runs every time is so that it can index the source file.  This upfront hit allows the tool to be much faster during coding.

Sorry to hear you cannot get more memory.  I use resharper on my laptop at home with only 1gig of memory and it works just fine for me.

Joe Niland wrote re: Something odd about this code
on 07-18-2007 3:09 AM

Yeah, resharper is pretty slow and I have 4GB in this machine! It has some essential features though. Lately I've been running it side by side with DevExpress (the free one). Works pretty well!

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Google Reader or Homepage Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of
Red-Gate Tools For SQL and .NET


SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
NHibernate Profiler
Balsamiq Mockups
JetBrains - ReSharper
Web Sequence Diagrams
Ducksboard<-- NEW Friend!


Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers


Community Server (Commercial Edition)