The strategy design pattern with an example

A strategy design pattern is the most commonly used design pattern in computer programming.

In this post, we’ll start with a basic switch case statement and then we’ll modify the code into strategy design pattern.

why func delegate is not translated to sql

This post is a sequence for the previous article which shows why the Func delegate is not translated into the SQL statements.

Unit tests for private methods?

This post as you read from the title is about unit testing for private methods. Do we really need to test the private methods in the unit tests?

Don't use Func delegate on the Entity Framework entities

In this post, I’ll show you what happens when you use a func delegate on the Entity Framework entities.

Building dynamic LINQ queries using Expression Trees and Func

Filtering an item from a list of items is easy but if the item to filter is not known at compile time then filtering a list will be little complicated.

Shortest word in a string with LINQ

In this post, we’ll try to find the shortest word in a string using LINQ.

How c# compiler looks at switch case statements

Every developer writes a switch case statement at least once in their life of programming but as he/she understands the switch is no longer maintainable they tend to look for patterns and do refactoring.

In this post, we’ll see what’s actually inside of a switch case statement.

Generating Sequence Numbers In LINQ Query

In this post, we’ll see how to generate sequence numbers along with the data that we need in LINQ C#.

Awaiting A Method Vs Awaiting A Task

What is the difference between awaiting a method vs await a task in c#. In this post, we’ll explore the major difference between awaiting a method and awaiting a Task.

Most developers just await on methods instead of awaiting on Tasks returned by the awaiter. An awaiter is something that is returned by the method that is awaited.
In this post, we’ll examine what happens when we await on methods instead of a task when we have multiple awaits in the method.

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now