.Net Core

Null Object Pattern

Almost every method that we write, irrespective of the programming language, we always have checks like the following one: [crayon-5c68527361016309301564/] We end up adding so many null checks in our methods, that it gets almost hard to figure out what we Read more…

By Gaurav Gahlot, ago
.Net Core

Anonymous Types in C#

Generally, for an object to encapsulate some properties, the type of the object has to be defined first. On the contrary, anonymous types provide a convenient way for an object to encapsulate readonly properties without explicitly defining the type first. Read more…

By Gaurav Gahlot, ago