C# course online
C# is the language many Polish technical schools use to teach object-oriented programming and to write applications for the INF.04 exam. In BitWizards you learn it without installing Visual Studio and without signing in: the real C# compiler (Roslyn, the same one Visual Studio uses) and the .NET 10 runtime run in the browser, on the student’s computer. Compiler errors have the same codes and messages as in Visual Studio (for example CS0029), and the program reads input in an interactive console with Console.ReadLine(). Schools use the platform for free.
Who it is for
- Technical schools: C# is one of the most popular languages for the practical part of the INF.04 exam. The course goes from the first program to classes, inheritance, collections and LINQ.
- Students who know Java or C++: the syntax is very similar, so the course also shows the differences: properties instead of getters and setters,
==on strings,switchexpressions,decimalfor money. - Teachers: no Visual Studio to install on school computers and no .NET versions to look after. A browser is enough, also on a Chromebook.
What you will learn
The C# Basics course (in Polish) has 12 topics and more than 240 examples and exercises. The topics follow the Java course.
- Introduction to C# - the
Programclass,Main,Console.WriteLine, first calculations, a condition and a loop. - Literals, variables, types and operators - simple types,
varandconst, casts, integer division and remainder,decimal, overflow. - Conditional statements -
if/else, the classicswitchandswitchexpressions with patterns, the?:operator, comparing strings anddoublevalues. - Loops and recursion -
for,while,do-while,breakandcontinue, nested loops, factorial, Fibonacci and prime numbers. - Classes and objects - fields, properties, constructors, encapsulation, static members, method overloading.
- Inheritance and polymorphism -
base,virtualandoverride, abstract classes, interfaces,ToString(),sealedandreadonly. - Arrays - one- and two-dimensional arrays, jagged arrays, copying,
Array.Sort. - Algorithms: sorting and searching - bubble, insertion and selection sort, linear and binary search, matrices.
- Library classes -
Math,Random,stringmethods,StringBuilder, formatting, reading input withConsole.ReadLine,int.Parseandint.TryParse. - Exceptions and foreach -
try/catch/finally,throw, custom exceptions,whenfilters,checked. - Collections and LINQ -
List<T>,Dictionary,HashSet,Queue,Stackand LINQ queries (Where,Select,OrderBy,Sum,GroupBy). - Colours in the console -
Console.ForegroundColor,BackgroundColorandResetColor: a progress bar, a PASS/FAIL report and a colourful Christmas tree.
How C# works in BitWizards
-
A real compiler in the browser: Roslyn compiles the code and the WebAssembly build of .NET 10 runs it. The program runs in a separate browser thread, so an endless loop does not freeze the tab: Stop or the time limit ends it.
-
Errors like in Visual Studio: a message with the line number and error code in the console, and an underline in the editor. An unhandled exception points to the line in the student’s program.
-
Interactive console:
Console.ReadLine()waits for input typed by the student;Console.ReadKey, colours andEnvironment.Exitwork too. -
Automatic checking: in tasks with a reference output, checking starts by itself after the run. A program that uses
Console.ReadLine()is checked against several data sets, so printing a ready answer does not pass. Reference outputs come from real .NET. -
No network: student code has no internet access.
-
Guest mode: without signing in you run examples, write your own code and complete tasks. Progress is saved in the browser.
-
Step-by-step execution: the Step button runs the program one statement at a time and highlights the current line. Next to it you see variable values (arrays, lists and objects too), the method call stack and how many times each line ran. The slider sets the animation pace, clicking a line number sets a breakpoint, and Pause stops the program wherever it is.
Where to start
Open the C# Basics course and run the first example, with no account and nothing to install.