Contents tagged with Tips
-
Correct exception handling
If you look at this post by SantoshZ of the C# team, you'll see code like this:
-
Nested comment blocks in C#
In C#, we can use two kinds of delimiters to comment code: // and /*...*/
The first one applies to one line, the second can be applied to a set of lines or just a part of a line (block commenting). These two possibilities are useful, but I always missed the ability to nest comment blocks. -
Application, Page and Control events in ASP.NET v2.0
The lifecycle of Application, Page and Control in ASP.NET 2.0 is something you'll have to know and understand sooner or later. It is essential to put things where they belong, and this kind of information is not only for control writers. Jeff did a great work collecting it. If you want to learn about this lifecycle in ASP.NET 1.1 instead, you can visit this page.
-
lock potential hazards
As a follow-up to my previous post about the Singleton design pattern potential hazard, I think it is useful to point out another potential hazard in multithreading scenarios.
-
Design Patterns potential hazards
As Object Oriented Programming fans, you all know Design Patterns and rely on them for your designs.
-
Most useful .NET FAQs and code samples
Every now and then I find myself looking for the same most valuable resources online, such as FAQs and code samples. Maybe it's time to list them all in one place:
-
Avoiding problems with relative and absolute URLs in ASP.NET
I'm back to ASP.NET development, and the first thing that hits me in the face is the limitations with URL handling in ASP.NET.
-
Method invocation raceway
Eric Gunnerson published an article in which he tests the different ways of invoking a method.
-
Tips for running a beta test
Twelve tips for you if you plan a beta test of your public product. This is from Joel, via Marcie.
-
Find Symbol in VS
La commande du jour: I just discovered the Edit | Find and Replace | Find Symbol command in Visual Studio. Yep, new things every day.