Intro to C#
Get started with C#: set up a development environment, write console programs, work with data types and variables, calculate with numbers and operators, and manipulate strings, with a practice project at the end.
- Beginner level
- 6 modules
- 27 lessons
- 110 tasks and questions
Syllabus
01Setting Up a C# EnvironmentInstall the .NET SDK, create and run a console project with dotnet new and dotnet run, read the project file, and choose and tune an editor such as Visual Studio Code or Visual Studio.4 lessons
02Hello, C#Meet C# and .NET, read the structure of a C# program, print to the console, and write comments.5 lessons
03Data Types and VariablesStore values in typed variables, choose between int, double, decimal, bool, char and string, let the compiler infer types with var, and convert safely between types.6 lessons
04Numbers and OperatorsCalculate with C#'s arithmetic operators, handle integer division and remainders, update variables in place, control evaluation order, and use the Math class.5 lessons
05StringsWork with text in C#: index into strings, build them with concatenation and interpolation, format numbers, search and transform text with string methods, compare strings correctly, and split, join and build strings efficiently.6 lessons
06Practice ProjectCombine variables, numbers, string methods and interpolation in a small program that turns raw numbers and a messy name into a tidy event budget report.1 lesson