Top

Tags


Roadkill .NET Wiki

Google ads

Recommended reading


Search

Entries in best-practices (4)

Monday
Apr052010

ApplicationException versus Exception

The two often repeated phrases about Exceptions in .NET is they should be used for "exceptional behaviour" and sparingly; they are a performance hit on your application and aren't a replacement for logging. This post goes into some details about Exceptions and ApplicationExceptions.

Click to read more ...

Tuesday
Mar022010

String.Equals(), == and String.Compare()

What's the difference between ==, .equals and string.Compare()? This post explores the three ways of comparing strings in C#/.NET.

Click to read more ...

Sunday
Sep062009

Const vs Readonly in C#

The differences between const and readonly, including some ILASM.

Click to read more ...

Monday
May182009

Your base class: Abstract or Interface?

One thing that is often overlooked by the tutorials and books is deciding when to use an abstract class vs an interface. The fashion for using interfaces for everything often rejects abstract classes outright. This post goes into a bit of detail about it.

Click to read more ...