Language-Integrated Query (LINQ) in C#

Language-Integrated Query (LINQ) in C# allows us to formulate the queries in C# language itself rather than using the syntax of SQL (Structured Query Language). The native data querying capabilities to the .NET languages have become part of the .NET Framework 3.5 with Visual Studio 2008 in the form of Language-Integrated Query (LINQ). With LINQ, …

Overview of MVC architecture in ASP.NET

This article will briefly provide an Overview of MVC architecture in ASP.NET. Basically, MVC (Model View Controller) is an architectural pattern for creating an application. With this pattern, the application is designed using three entities – the Model, the View, and the Controller. While the Model represents the data maintained by the application, View provides the …

How Data Binding Works in WPF

In general, Data Binding is a way to communicate the data among the code and UI components. Today I will explain How Data Binding Works in WPF (Windows Presentation Foundation). In order to get familiar with WPF, you can go through this basic article on WPF. While creating a navigation window application in WPF is explained …

Understanding Dispose and Finalize in C#

In this post on Understanding Dispose and Finalize in C#, I will explain the two important methods related to the Garbage Collection. Basically, the garbage collection module of Common Language Runtime (CLR) in .NET Framework frees the programmer for memory management tasks. In fact, the garbage collector maintains three generations of objects – generation 0, …

Examples of Connected and Disconnected Approach in ADO.NET

Today I will give some examples of the Connected and Disconnected Approach in ADO.NET. Basically, the ADO.NET library in .NET Framework provides the functionality for database access. This library offers lots of classes and methods for fetching and manipulating data from any data source. The following examples demonstrate how to perform database operations using these two approaches. As …

New Features in C# 9

In this post, I will discuss several New Features of C# 9. In fact, the latest release of C# has added many new features for making coding easier. Here, I will explain Records, Init-Only properties, Top-Level statements, module initializers, and use of new(). Following are the New Features in C# 9 The important New Features …