Skip to content

C#

callback functions in c#

Delegates as callback functions in csharp

To update many records in entity framework, it is good to use the .Attach method of the db context instead of looping through every record and fetching the data through EF and updating it.

Read More »Delegates as callback functions in csharp
strategy design pattern

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.

Read More »The strategy design pattern with an example