C# Tutorials Blog

Follow these free tutorials to learn C# basics and more advanced topics, including ASP.NET Core web development and Xamarin mobile development. Each tutorial includes code snippets and examples.

Control Arduino from C# Serial Port

Did you know you can use C# and .NET to extend the functionality of your Arduino device? In this tutorial, we will be writing a WPF desktop application to communicate with an Arduino Uno board connected through a USB port to your computer. Getting Started For this tutorial, you will need an Arduino board and … Read more

New in .NET 5 – Top-level Statements

.NET 5.0 is here. The next major release of .NET Core has launched, and with it comes some significant changes. In this post, we will be highlighting one of those changes that is making headlines. Top-Level Statements The launch of C# 9 (alongside the .NET 5 release) brings some new features to the language, and … Read more

Microsoft Translator API and Bot Framework

In the previous tutorial, you were introduced to the world of chatbot creation using the Microsoft Bot Framework. The example was fairly trivial, as the bot simply echoed the input of the user. In this tutorial, you will take your bot to the next level by creating something useful – a bot that will translate … Read more

First C# Chatbot with Microsoft Bot Framework

In this tutorial, you will create your first C# chatbot app using .NET Core and the the Microsoft Bot Framework. Getting Started Before you can begin developing bots in Visual Studio, you must first download and install the BotBuilder templates from the Visual Studio Marketplace. After you run BotBuilderVSIXV4.vsix, you will be able to create … Read more

xUnit Unit Test Razor Pages

Test-driven development is a valuable development process, and unit testing is an important part of the process. In this tutorial, you will learn how to write unit tests for a Razor Pages project using the xUnit testing library. Setting up the Web App Start by creating a new solution with a Razor Pages web application … Read more

Xamarin Blazor Mobile Button Event Handlers

Using the Blazor programming model to handle button events, like OnClick, makes writing Xamarin mobile applications with form inputs a breeze. Getting Started In the previous tutorial, you learned how to create some of the more common mobile app layout designs. In this tutorial, we will bind the values of some Entry components and do … Read more

Looking for more?

You have visited our site before, and we appreciate you!

If you found the tutorials helpful, enter your email address for more free C# tips and tricks.

Can't get enough C#?

Enter your email address for more free C# tutorials and tips.