Category Archives: C#

Azure – Cosmos DB

By | 07/07/2021

In this post, we will see how to create a database in Cosmos DB using Azure Portal and how to manage CRUD operations with a console application.But, what is Cosmos DB?From Microsoft web site:“Azure Cosmos DB is a fully managed NoSQL database for modern app development. Single-digit millisecond response times, and automatic and instant scalability,… Read More »

C# – 9.0

By | 16/06/2021

In this post, we will see two interesting features introduced with C# 9.0.For the complete list of all new features, we can go to Microsoft web site. RECORDSRecords provide an extremely fast way to define an immutable object with value type semantics. If we run the application, this will be the result: A Record is… Read More »

Category: C# Tags:

C# – Asynchronous Programming

By | 26/05/2021

In this post, we will see how to manage Asynchronous Programming in C#.Asynchronous programming is a means of parallel programming in which a unit of work runs separately from the main application thread and notifies the calling thread of its completion, failure or progress.Obviously, there would be many things to see and understand in Asynchronous… Read More »

Category: C# Tags:

Design Patterns – Command

By | 31/03/2021

From“In object-oriented programming, the command pattern is a behavioral design pattern in which an object is used to encapsulate all information needed to perform an action or trigger an event at a later time. This information includes the method name, the object that owns the method and values for the method parameters.”In a nutshell, we can use the Command Pattern to encapsulate… Read More »

Azure – Queue with Service Bus

By | 24/03/2021

In this post, we will see how to send message in a queue using Azure Service Bus.But first of all, what is Azure Service Bus?“Microsoft Azure Service Bus is a fully managed enterprise message broker with message queues and publish-subscribe topics.If two applications want to communicate with each other with less dependency, then Azure service… Read More »

C# – Events

By | 10/03/2021

In this post, we will see what an Event is and how we can use it.First of all, what is an Event?From Microsoft web site:“An event is a message sent by an object to signal the occurrence of an action. The action can be caused by user interaction, such as a button click, or it… Read More »

Category: C# Tags:

C# – Dynamic Type

By | 24/02/2021

In this post, we will see what a Dynamic Type is and how to use it. Dynamic Type was introduced in C# 4.0 and it avoids compile-time type checking.It escapes type checking at compile-time and it resolves type a run time.A dynamic type variable is defined using the dynamic keyword.Let see some examples: DEFINING A… Read More »

Category: C# Tags:

C# – Delegates

By | 10/02/2021

In this post, we will see what Delegates are and how to use them.First of all, what is a Delegate?From Microsoft web site: “A delegate is a type that safely encapsulates a method, similar to a function pointer in C and C++. Unlike C function pointers, delegates are object-oriented, type safe, and secure. The type of a… Read More »

Category: C# Tags:

C# – TDD

By | 06/01/2021

In this post, we will see how to create a simple Console application (a calculator), using TDD.But first of all, what is TDD?From Wikipedia:“Test-driven development (TDD) is a software development process that relies on the repetition of a very short development cycle: requirements are turned into very specific test cases, then the code is improved… Read More »

Category: C# Tags: