What’s New in C# 14: Every Feature With Runnable Examples

What's new in C# 14: an extension block adding a Total extension property to decimal[] with the real output 2150

What’s new in C# 14? Extension members (extension properties and static extension members), the field keyword, null-conditional assignment with ?.=, nameof(List<>), implicit span conversions and a few smaller upgrades. In this tutorial, I’ll run what’s new in C# 14 one feature at a time. Each one gets a tiny .NET 10 program, its real output … Read more >>

Type Casting in C#: A Program to Demonstrate Every Conversion

Type casting in C#: a table comparing (int) cast, Convert.ToInt32 and int.Parse results for 12.97, 2.5, 3.5, "42", "abc" and null

Type casting in C# changes a value from one type to another. Widening casts like int to long happen implicitly, while narrowing casts like (int)12.97 need explicit syntax and can lose data: that one returns 12, not 13. In this tutorial, I’ll build up a little US shipping calculator and use it to show type … Read more >>

Leap Year Program in C#: IsLeapYear and the if/else Rule

Leap year program in C#: DateTime.IsLeapYear output showing 1900 False, 2000 True, 2024 True, 2026 False and 2028 True

February 29, 2028 is the next leap day. A leap year program in C# needs one call, DateTime.IsLeapYear(year), or one expression: (year % 4 == 0 && year % 100 != 0) || year % 400 == 0. In this tutorial, I’ll show the built-in method, the manual leap year program in C# with if/else, … Read more >>

How to Convert a String to Int Without Parse in C#

Convert string to int without parse in C#: the string "4815" becomes the int 4815 through a c - '0' digit loop

Interviewers love this one: turn “4815” into an int without calling int.Parse. To convert a string to int without Parse in C#, loop over the characters and build the number yourself: In this tutorial, I’ll write my own convert string to int without parse in C# routine, then add a sign, invalid-character checks and overflow … Read more >>

What Is C#? A Beginner’s Guide to C# 14 and .NET 10

What is C#: a first C# program printing Hello, Jenna! and the .NET 10 runtime version in a VS Code style card

C# (pronounced “C sharp”) is Microsoft’s free, general-purpose programming language for building web apps, APIs, cloud services, desktop apps and Unity games. You write C#, and the .NET platform compiles and runs it on Windows, macOS and Linux. In this tutorial, I’ll explain what is C# in plain English, then have you write and run … Read more >>

.NET Core Interview Questions and Answers (2026, .NET 10)

.NET Core interview questions 2026: DI lifetimes table with singleton per application, scoped per HTTP request and transient per resolve

Job posts in Seattle, Austin and New York still say “.NET Core developer,” but the .NET Core interview questions you’ll hear in 2026 are about .NET 10, ASP.NET Core, dependency injection, middleware and EF Core. The “Core” name was dropped after 3.1. In this tutorial, I’ll answer 40 .NET Core interview questions with short answers … Read more >>