RSSAmplifier

Blog

Code with Shadman

Easy-to-understand tutorials on the .NET stack with C# language

codewithshadman.comRSS feed ↗60 posts

Latest posts

The Only Microservice Template You'll Ever Need

This blog post outlines how to use BytLabs.MicroserviceTemplate, to define your use cases in the Domain, Application, and Infrastructure layers.

Pure Functions C#

This article explains what are FP Functions or Pure Functions in C# functional programming and why they matter.

C# Attributes

In this article, you will learn how to use C# attributes in your own code and how to use reflection along with attributes.

C# Data Types and Object Tips

In this article, we're going to be learning about a whole host of different tips and tricks related to data types and objects in C# and .NET.

C# Number And DateTime Tips

In this article, we're going to be learning about a whole host of different tips and tricks related to numbers and dates in C# and .NET.

C# String and Formatting Tips

In this article, we're going to be learning about a whole host of different tips and tricks related to C# String and Formatting.

CQRS Design Pattern C#

CQRS design pattern C# is a simple pattern that strictly segregates the responsibility of handling command input into an autonomous system from the responsibility of handling side-effect-free query/read access on the same system.

Chain Of Responsibility Pattern C#

The Chain of Responsibility is an ordered list of message handlers that know how to do two things; process a specific type of message, or pass the message along to the next message handler in the chain. The Chain of Responsibility provides a simple mechanism to decouple the sender of a message from the receiver.

Type Comparison In C#

In this post, we will discuss different types of comparison methods, such as equality operators, object.equals method and IEquatable interface, used for comparing values in C#.

Is And As Operators In C#

In this article, we will discuss, the IS and AS keywords in C# and the importance of IS and AS operators in C#.

Declarative Programming

In this article, I will introduce you to an alternative style of programming called declarative programming. Proper declarative programs are easier to read, understand, and maintain.

Template Pattern C#

The Template Method pattern in C# enables algorithms to defer certain steps to subclasses. The structure of the algorithm does not change, but small well-defined parts of its operation are handled elsewhere.

State Pattern C#

State Pattern in C# allow an object to alter its behavior when its internal state changes. This is achieved by an object variable changing its subclass, within a hierarchy.

Send and Receive Emails in ASP.NET with C#

In this post, you will learn how to send and receive Emails in ASP.NET with C#.

Strategy Pattern C#

The Strategy pattern in C# lets the algorithm vary independently from clients that use it. The Strategy pattern enables a client to choose which algorithm to use from a family of algorithms and gives it a simple way to access it.

Mediator Pattern C#

The Mediator pattern in C# enables objects to communicate, without knowing each other's identities. It also encapsulates a protocol that objects can follow.

Observer Pattern C#

Observer in C# is a behavioral design pattern that allows one object to notify other objects about changes in their state. In this article, you'll learn how to implement the Observer in C#.

Iterator Pattern C#

The Iterator pattern in C# provides a way of accessing elements of a collection sequentially, without knowing how the collection is structured.

C# String.Format() and StringBuilder

This article discusses whether String.Format is as efficient as StringBuilder in .NET.

C# Pattern Programs

A complete collection of c# pattern programs. This article explains the list of star pattern programs in c# programming language.

Generics In C#

This article explains the Generics in C# with the help of a real-time problem and its step by step solution using c# generics. This article serves to be an in-depth post on getting started with generics in c#.

C# String

C# String class represents a string data type. This tutorial explains strings in C# and how you can use strings in your .NET applications.

Memory Leak C#

Learn what is a memory leak in C# and how to measure .NET application performance with a variety of tools to diagnose memory issues.

Repository Pattern C#

A Repository mediates between the domain and data mapping layers. Repository Pattern in C# supports the objective of achieving a clean separation and one-way dependency between the domain and data mapping layers.

Nullable Types And Null Coalescing Operator C#

This C# article discusses the Nullables with Null Coalescing operator and also explains the unique ways to use the Null Coalescing operator.

Delegates And Events In C#

In C#, delegates form the basic building blocks for events. This post explains the implementation detail of Delegates and Events in C# .NET.

AngularJS Service

Angularjs Services are objects that contain reusable code that can get consumed across app using Dependency Injection. This article will explain all of the techniques required to create your own AngularJS service.

ASP.NET MVC Life Cycle

This article introduces Request Life Cycle and Application Events that takes place as the request travel through MVC framework and Asp.NET platform. It also explains different methods to interact with this events.

Entity Framework Enum Code First Lookup Table

Learn how to create lookup tables using enums in entity framework with Code-first approach.

Entity Framework Migrations For Teams

Entity Framework is an Object Relational Mapper (ORM) which is a type of tool that simplifies mapping between objects in your software to the tables and columns of a relational database. In this article you will learn how to use EF Migrations with Git and TFS source control in teams.

Adapter Design Pattern In C#

The Adapter design pattern is one of the most common, and most useful patterns available to us. This post explains the Adapter design pattern in C# language.

Python Style Tuple In C#

C# 7.0 (.NET Framework 4.7) introduced ValueTuple, a structure which is a value type representation of the Tuple. It can be used where you want to have a data structure to hold an object with properties, but you don't want to create a separate type for it.

No Virtual Keyword In Java And No Final Keyword In C# Explained

When we make something virtual in a platform, we're making an awful lot of promises about how it evolves in the future. For a non-virtual method, we promise that when you call this method, x and y will happen.

Sharp Column Indenter - Visual Studio Extension

A Smart source code indenter that indent the code into columns. Also known as 'code alignment'.

Publish Subscribe Design Pattern In C#

Publish Subscribe or Pub-Sub is a design pattern that allows loose coupling between the application components. This post explains the implementation detail of Pub-Sub using Delegates, EventHandlers and Event keyword in C#.

Task Parallelism C#

In this article we will be discussing different methods to achieve parallelism using Tasks in C#.

Async And Await In C#

In this article, you’ll learn about the Task-based asynchronous programming model along with async and await keyword in C#. You will also learn about the application of this asynchronous principle across .Net Applications.

C# Task

This article serves to be a quick guide for using Tasks in C#. It discusses different methods to create tasks and handle their execution.

C# Monitor

This article explains how to use Monitor Class in C#. Monitor and lock is the way to provide thread safety in a multithreaded application in C#. Monitor class is one of the wait based synchronization primitive that provides gated access to the shared resource.

C# Thread Synchronization

This article explains techniques to tackle the thread synchronization problems and race condition. Thread synchronization refers to the act of shielding against multithreading issues such as data races, deadlocks and starvation.

Race Condition C#

This article explains what is Race Condition and Shared Resources in a multithreaded program and how much it is critical to synchronize a multithreaded program having shared resources. Thread Synchronization is a mechanism which ensures that two or more concurrent process or threads do not execute some particular section of program especially critical section at the same time.

C# Threadpool

This article explains how to use C# Threadpool. A thread pool is a collection of threads that can be used to perform several tasks in the background. This leaves the primary thread free to perform other tasks asynchronously.

C# Thread

This article is a complete introduction to threading. It explains what is a thread and why it is used in programming. Threading enables your C# program to perform concurrent processing so that you can do more than one operation at a time.

C# Multithreading

Multithreading in C# is a process in which multiple threads work simultaneously. It is a process to achieve multitasking. It saves time because multiple tasks are being executed at a time.

C# Fields, Properties and Indexers

In this article, we will discuss about C# Fields, Properties and Indexers. A field is a variable which is declared directly in a class or struct in C#. A property is a member that provides a flexible mechanism to read, write, or compute the value of a private field.

C# Polymorphism

Polymorphism in C# relates to the choice of which method to call, where the declared class of a variable is different from the run-time class of the object it references. In this tutorial, you will learn about - inheritance polymorphism and runtime polymorphism in c#.

C# Methods

C# Methods are operations associated with types. To provide a type with methods is to give it some useful functionality. In this article, you will learn different types of methods in C# language.

C# Class

In this article, we will learn the very basic fundamental of OOPS programming that is classes and objects. Classes are a blueprint for creating individual objects that contain the general characteristics of a defined object type.

C# Object-Oriented Programming

Understanding and using object-oriented coding techniques is the key to building well-crafted C# applications. In this part of the C# tutorial, we will talk about object-oriented programming in C#.

C# Conditions

In this article, we will look at C# conditional statements. Conditions are used to execute part of a code only if some predefined conditions are fulfilled.