C# Null Extensions

When working in C#, it is not uncommon to encounter nested object properties (e.g. Student.Grades.Total). Each chained object should be checked for null in order to avoid accessing null elements, throwing a NullReferenceException. This article aims to fix that. In C# 6, the¬†Null-Conditional Operator¬†was introduced, which solves the null-checking in chained objects. Unfortunately, this feature […]

Read More