Blog Archives

The C# Null-Coalescing Operator ??

The null-coalescing operator in C# allows you to check if a variable has a null value and on-the-fly provide a default value in its place.

Tagged with: , , , ,
Posted in Blurbs

.NET DateTime.CompareTo Function

The .NET DateTime class has a handy CompareTo function that allows you to compare two DateTime objects. However, it’s not always easy to remember how the result relates to the relationship between the two DateTimes being compared.

Tagged with: , , ,
Posted in Blurbs

C# using Statement

Using Statements are a great way to avoid memory leaks in C#. This article explains what is happening functionally behind the scenes.

Tagged with: ,
Posted in Blurbs