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 » .Net Do's & Don'ts (RSS)
How to: Code Service Dependencies
On my current assignment we develop and maintain a number of Windows services. Some of these service depend on others. The problem we faced when we needed to deploy new versions, is that services did not start in the correct order. Some services depend...
How to: Reformat your code in Visual Studio
We're all really fast at coding, right. So you don't want to bother with things like proper casing of keywords (in VB.Net) and properly re-aligning the code. Well, Visual Studio can do that for you with just a few keystrokes. I noticed that not that many...
How to: Change casing in Text to TitleCase
At Tech-Ed 2006 I attended a session about hidden treasures in .Net. One of the treasures mentioned there was the ToTitleCase() method. This method changes the case of the first character of each word in a text to Upper case: System.Threading.Thread.CurrentThread...
Centralizing AssemblyInfo settings, or simplify versioning of solutions
I'm working on a solution in Visual Studio 2003 at the moment, which contains about 15 assemblies. All these assemblies have a AssemblyInfo.cs file which contains more or less the same information. In general, when you look at larger solutions, you will...
Patterns and Practices Guidance Explorer
Some weeks ago, Microsoft have released the Patterns & Practices Guidance Explorer for .Net and Asp.Net applications. If you want to know what the proven practices for security and/or performance are for .Net applications, this is the tool to help...
Upgrading VB6 applications to VB.Net and VB 2005
I was asked a question about this for a possible new assignment and obviously thought of the upgrade wizard that is part of the Visual Studio IDE. Just open the VB6 solution in Visual Studio and just follow the steps. But there's obviously more to it...
How to: Suppress FxCop messages in code
You all know the problem. You run FxCop on your project or solution and it keeps throwing messages at you that for some reason you want to ignore for this project. Say you're building a WinForms application and in the click event for your button, you...
Dispose and the Garbage collector
I was assigned to a .Net web project some years ago to see why the application continued to allocate more and more memory untill IIS thought it was to time to restart the application. I solved a lot of the problems in that project simply by calling the...
Using code analysis tools
If you're not interested in someone expressing his feelings about checking code and code quality, please skip this post. If you're still reading this, then I assume you're interested and I would really like you to comment on this subject. I've been working...
New Recommendations for Using Strings in Microsoft .NET 2.0
We've been discussing string use in .Net on several occasions. You can use this link as a starting point. I just read an interesting article on MSDN, with recommendations for string use in .Net 2.0 . The document focuses on string comparisons. From that...
Rico Mariani's Articles and Recommendations
About a week ago, Bob Gladon blogged about the performance of string concatenations . Erwyn van der Meer, a colleague of mine who unfortunately still doesn't blog here, responded to that post with a link to Rico Mariani's weblog . Rico regulary blogs...
Absolute Beginner's Video Series to Visual Studio 2005 Express Editions
I was asked today if I knew of a way to get started with Visual Studio 2005. So I checked the Visual Studio Express Edition website and found the Absolute Beginner's Video Series to Visual Studio 2005 Express Editions . This video series is designed specifically...
The C# "using" construct
Cyrus Blather has written a very detailed article about the “using” construct and the pro's and con's of using it. I read it earlier this week and find it really interesting. I decided to blog the link after talking to a colleague about the...
Using VB collections in C#
I talked to Patrick about the problem he had with hashtables and how good he thinks the VB.Net collections are. He wanted to add objects to a list and retrieve them in the order in which they were entered. Hash tables are organized using the hash code...
Unexpected error creating debug information file
This morning, when I started my project and tried to recompile, Visual Studio 2003 started complaining. It gave me the following error message: unexpected error creating debug information file 'X:\Projects\.....\bin\debug\project.pdb. I tried deleting...
More Posts Next page »