# C# Basics

Your first C# programs: how a C# project is built and run, how variables hold values, which data types C# offers and why the type matters, how to convert between types, and how to calculate with expressions.

Updated: November 3, 2026

## [C# Projects](https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/csharp-projects)

1. [Your First C# Program](https://www.ask-codey.com/lessons/csharp-projects-your-first-csharp-program) (Novice): Write and run your first C# program, first as a single file with dotnet run, then as a project in the terminal and in Visual Studio.

## [Variables in C#](https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/variables-in-csharp)

1. [What is a Variable](https://www.ask-codey.com/lessons/variables-in-csharp-what-is-a-variable) (Novice): A variable is a named place where your program remembers a value, so it can use it again later.

## [C# Data Types](https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/csharp-data-types)

1. [C# Data Types](https://www.ask-codey.com/lessons/csharp-data-types) (Novice): Every C# variable has a data type that decides what it can hold: whole numbers, decimals, money, single characters, text, or true and false.

## [Converting Data Types in C#](https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/converting-data-types-in-csharp)

1. [Converting Data Types in C#](https://www.ask-codey.com/lessons/converting-data-types-in-csharp) (Apprentice): C# converts a smaller type to a larger one for you; anything else you convert yourself, with a cast, the Convert class, or Parse for text.

## [Arithmetic and Expressions in C#](https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/arithmetic-and-expressions-in-csharp)

1. [Arithmetic and Expressions in C#](https://www.ask-codey.com/lessons/arithmetic-and-expressions-in-csharp) (Novice): Calculate in C# with + - \* / and %, know why 5 / 4 is 1, and work out an expression in the order C# does.

## [Exercise: Variables and Data Types](https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/topics/exercise-variables-and-data-types)

1. [Exercise: Variables and Data Types](https://www.ask-codey.com/lessons/exercise-variables-and-data-types) (Novice): Solve 28 small problems with variables, data types and expressions, and check every answer with tests.

Source: https://www.ask-codey.com/courses/csharp-full-stack-bootcamp/chapters/csharp-basics
