Skip to main content

Pascal Long

Blogs from this Author

Chained null checks

Introduction Regarding to “NullReferenceException”, which is familiar to most of the programmers, because it is very likely to occur “NullReferenceException” when accessing a nested object property. For instance, opportunity.Contact.HomeAddress.Street, if any of the opportunity, Contact or HomeAddress is null, it throws “NullReferenceException”. This blog, will introduce you a easy extension method, which can void redundant […]