Jan Schreuder on .Net

.Net code samples, experiences, observations

View my professional profile on LinkedIn

Recent Posts

Tags

News

  • Inappropriate comments will be deleted at my discretion.

    The information and code samples in this weblog is provided "AS IS" without warranty of any kind, either expressed or implied, including but not limited to the merchantability and/or fitness for a particular purpose.

Community

Email Notifications

Tool suppliers

Tools

General

Microsoft

Favorite blogs

Archives

Browse by Tags

All Tags » Code inspections (RSS)
What the f**k..
I see a lot of code from other developers and every now and then you see some real gems. Today I was looking at a query to see if and how it could be optimised. One of the things I did was look at the query plan to see if indexes were used for various...
How to - Create a missing designer.cs file
I was running into this just now and found a quick way to solve it, so I just posted it for future reference. I have an ASP.Net web application project in .Net 2.0 which was migrated from .Net 1.1 some time ago. I noticed that a few aspx pages did not...
Syntax error? Really?!?!
In my current project, we have adopted Microsoft StyleCop as a tool to make sure everyone sticks to the same style of coding. One of the things we currently incorporate in our daily work is making sure our existing code conforms to the rules we agreed...
Thank you, Lutz Roeder
I just received an email from Lutz Roeder informing the users of Reflector that he decided to explore new opportunities. He has reached an agreement with RedGate software to continue work on Reflector. From his email: I have reached an agreement to have...
StyleCop - QuickStart tips
After using StyleCop for some weeks, there are some things I think that might be useful to others when they want to start using the tool. So here are some tips. Tip 1 - Also download the documentation The documentation for StyleCop is available as a separate...
Version 4.3 of Microsoft StyleCop available
A new version of StyleCop was made available only a few days ago, so I downloaded it and installed it. One thing I had to correct after installation was the Settings.SourceAnalysis file. Because of the name change to StyleCop, the extension of the settings...
Have your C# coding style analysed by Microsoft, part 2
Just as a small update on the use of StyleCop . I disagreed with some of the rules, like having to use spaces rather than tabs. It's not really an annoying rule, the only thing about it is that you have to agree on using spaces or tabs and then stick...
Coding standards, Coding rules, Coding guidelines, etc...
If there's one thing that developers usually just cannot (or will not) agree to, then it's Coding standards/rules/guidelines or whatever name you want to give it. I posted a short item about a new tool from Microsoft that checks if your code matches...
Have your C# coding style analysed by Microsoft!
Or to be more specific, by Microsoft StyleCop . Now this may not be new to you, and that's very likely since StyleCop was announced in May of this year, but it was new to me. The tool checks your code for coding style and more specific, the Microsoft...
What FxCop rules do Microsoft have turned on internally?
Ever wondered if Microsoft use FxCop themselves, and which rules they have turned on? Well, the Visual Studio Code Analysis Team Blog gives you the answer. If you click this link , you will find a complete list of rules Microsoft use when analysing their...
FxCop 1.36 Beta available for download
The Visual Studio Code Analysis Team Blog announces the release of FxCop 1.36 Beta.This new version contains the following (taken from the original post ): 200+ bug fixes that reduce noise, missing analysis and rule crashes Support for analyzing anonymous...
Another "What the F**K" moment
I tried compiling my application just now and got this error message from the compiler: Preparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error (0xc0000005 at address 77FCD43E): likely culprit...
What the F**K is the 'Grady' operator
The web application I'm working on logs errors in a log file using Log4Net. Nothing new, loads of applications do that. But I was surprised when I found the following error message: System.Data.SyntaxErrorException: Syntax error: Missing operand after...
Code inspections - Why and how to conduct them
Triggered by a request from one of my colleagues, I decided to blog about why I think code inspections are useful and how they might be conducted. ...
Running FxCop on VB.net can be very annoying
I built a very small application which only shows information from a table in a standard DataGrid. Nothing special, other than I had to do it in VB.Net 1.1. I have just finished testing it, and am now running FxCop on the code to see what problems I still...
More Posts Next page »