Binary Search: An Efficient Algorithm

Binary Search Algorithm

Binary search is a powerful algorithm, we use this algorithm to find the position of a target value within a sorted array. It works by repeatedly dividing the search interval in half, effectively narrowing down the search area until the target is found. Understanding the Problem Binary search is particularly useful when dealing with large, … Read more

Introduction to Routing in .NET MVC

.NET MVC Tutorial

Routing is the backbone of the .NET MVC web application, determining how URLs map to controller actions. In this article, we will explore the different routing approaches available, from default routing to more advanced attribute-based routing, equipping you with the knowledge to create intuitive and flexible URL structures. Convention-based The default routing in .NET MVC … Read more

Temp Data, View Bag, and View Data in .NET MVC

.NET MVC Tutorial

In the previous article, we created the first MVC application in Visual Studio 2022. In this article, we will learn the mechanism available in ASP.NET MVC for managing and passing data between your controller and views – Temp Data, View Bag, and View Data. Understand their purpose, scope, and best practices for effective implementation. Temp … Read more

First .NET MVC Application using Visual Studio

.NET MVC Tutorial

MVC is a widely adopted software design pattern that separates an application’s data, user interface, and control logic into three interconnected components: the Model, the View, and the Controller. This architectural pattern promotes code organization, scalability, and maintainability. In our previous article, we saw the fundamentals of .NET MVC. Setting up a New MVC Project … Read more

.NET MVC Tutorial For Beginners and Professionals

.NET MVC Tutorial

This is the first article of the .NET MVC Tutorial series. We will cover every topic of .NET MVC in our MVC Tutorial series. Introduction to the Model-View-Controller (MVC) Architecture The Model-View-Controller (MVC) architecture is a widely adopted software design pattern that separates an application’s data, user interface, and control logic into three interconnected components: … Read more

Cached Repository Pattern in C#

Cached Repository Pattern

In this article, we will learn about Caching a Repository Pattern in C# and .NET 8 and we call this Cached Repository Pattern. If you are new to design patterns then please read this – Design Pattern in C# Download the source code for this article : SharePointCafe GitHub Repository What is a Cached Repository … Read more

C# Amazing New Features

C# Amazing New Features

In this article, we are going to learn about C# amazing new features available in recent releases. For this article, we are picking a couple of the most exciting features of C# versions 10, 11 and 12. So, let’s start. File-scoped Namespace Declaration This feature is one of the most interesting features of C# 10. … Read more

.NET 6, .NET 7 and .NET 8 Performance Comparison

.NET 6, .NET 7 and .NET 8 Performance Comparison

As per Microsoft .NET 8 is more optimized than .NET 7 and .NET 6. Also, .NET 8 is the fastest version compared to .NET 6 and 7. In this article, we will compare .NET 6, 7 and 8 performance with the BenchmarkDotNet library. Read more about the use of BenchmarkDotNet library. Benchmark Compare of .NET … Read more

Partial Class in C#

In this article, we will learn about partial class in C#, we will also explore the real-time use of partial class. A partial class is a special class available in C#. It provides a way to implement the functionality of a single class into multiple classes. And, at the time of compilation, all these files … Read more

C# Foreach and Parallel Foreach Loop

Foreach loop in C#

C# programming offers numerous iteration statements to iterate through an array. Some of the iteration statements are for loop, foreach loop. In this article, we will learn the use of the foreach loop in C#. Understand the Iteration concept Iteration is the execution process for a defined number of times until the given condition is … Read more

RSS
YouTube
YouTube
Instagram