The protected keyword in CSharp, what is it used for?

The protected keyword is an access modifier applied to the declaration of a class and any of its members that restricts the scope of accessibility to either within the class (or struct) where it is declared or from classes derived (inherited) from it.

Read
Dependency injection and configuration of an ASP.NET CORE 3.x console app

Dependency injection and configuration of an ASP.NET CORE 3.x console app

Dependency Injection is an increasingly popular and prominent design pattern in modern application development.

ASP.NET Core 3.x is platformed on top of the generic host. A versatile object that let's us encapsulates an app's resources at start up and configure dependency injection.

I'm going to share how I configured my generic host with a bare-bones approach you can adapt. It implements logging, autofac and is configurable with appsettings.json.

Read
Data binding UI controls to ListView columns in .NET WinForms

Data binding UI controls to ListView columns in .NET WinForms

In this tutorial, we will look at binding a form control such as a label and checkbox to a ListView column in .NET (4.7) WinForms (Window Forms).

Its features will include:

  • Updating the content/CheckState of the bound control where there is a selection change on the ListView
  • Using a button to modify the column’s item with the value contained in the bound control
  • Create and add a new item to the listview according to values present in the bounded controls
Read