Nullable Types

Instead of this:

public int lastStandingCount = -1; //-1 = no value

one could use a nullable type in C#:

public int? lastStandingCount = null;

if one doesn’t like using -1 for “no value”.

returning null seems to be a better habit

Privacy & Terms