The ins and outs of generic interface variance

In this post we’re going to look at generic interface polymorphism in C#. Let’s start by defining a couple of example classes.

How to use lookarounds in regular expressions

The trick to understanding lookarounds is understanding that they are made up of two components: the condition and the capture. Let’s explore this using an example. Let’s say that we want to find all words in a phrase that start with the lowercase letter w. First, let’s write an expression to capture all lowercase w’s at the beginning of words.

The difference between const and readonly in C#

Const and readonly are two very useful keywords in C#. While they both perform roughly the same function, they are not implemented in the same way. As we’ll see later, being aware of the real difference between the two can help us write more robust applications.

Referencing project elements in a T4 file

Inspired by this Stack Overflow question. Give the asker an upvote if you have a minute.