C# Introduction

What C# is and what you can build.

✍️ 2 exercises in this lesson

C# (pronounced "C sharp") is a modern, object-oriented language created by Microsoft. It runs on .NET, which works on Windows, macOS and Linux.

What C# Is Used For

  • Web APIs and websites with ASP.NET Core
  • Games with the Unity engine
  • Desktop apps (WPF, WinForms, MAUI)
  • Cloud services and microservices

Modern C# supports top-level statements, so a program can be a single line.

Key Takeaways: C# Introduction

Mastering C# Introduction helps you write clean and reliable C# code. Follow standard conventions, test edge cases, and keep logic simple. Try running the code example below and complete the exercises to build confidence.

C# Introduction Code Example

C#
Console.WriteLine("Hello, CodesInTech!");
Output
Hello, CodesInTech!
Run this example on your own computer. The "Get Started" lesson shows how to set it up.

C# Introduction Practice Exercises

Check what you learned in “C# Introduction”.

/ 2 solved
Fill in the blank

Print a line to the console.

Console.("Hello");
✓ Correct! Not quite. Try again.
Multiple choice

C# runs on which platform?

✓ Correct! Not quite. Try again.
to save your exercise progress.
Finished this lesson?
Mark it complete to track your progress.

Stuck on something?

Ask the community in the CodesInTech forum.

Need a developer?

Learning on your own is great — and when you need professional help, our team builds custom software, websites and mobile apps for clients worldwide.

Explore Our Services