---
title: "C# Console Applications"
lastModified: "2026-10-07T11:38:29+05:30"
---

Structured, scenario-based console samples aligned with theory in `../Intro`.

## Index
| # | Folder | Topic | Summary |
|---|--------|-------|---------|
| 01 | [01_BasicIO](/docs/en/modules/c-sharp/console-basic-io) | Basic IO & Variables | Read/write console, validation |
| 02 | [02_ControlFlow](/docs/en/modules/c-sharp/console-control-flow) | Control Flow | if, switch, loops, break/continue |
| 03 | [03_Strings](/docs/en/modules/c-sharp/console-strings) | Strings | Common APIs & immutability |
| 04 | [04_Arrays](/docs/en/modules/c-sharp/console-arrays) | Arrays | 1D & 2D arrays, sorting |
| 05 | [05_Methods](/docs/en/modules/c-sharp/console-methods) | Methods | Signatures, overloading, Math, Random |
| 06 | [06_OOP](/docs/en/modules/c-sharp/console-oop) | OOP Basics | Classes, inheritance, polymorphism |
| 07 | [07_Exceptions](/docs/en/modules/c-sharp/console-exceptions) | Exceptions | try/catch/finally, custom exception |
| 08 | [08_InMemoryCRUD](/docs/en/modules/c-sharp/console-in-memory-crud) | CRUD | In-memory repository pattern |

## How to Run (macOS / Linux / Windows with .NET SDK)
1. Navigate into a folder (e.g. `01_BasicIO`).
2. If you convert to a project later, use `dotnet new console` and move `Program.cs` in.
3. For single-file quick run (C# 9+ script style not used here), compile:

```
csc Program.cs && mono Program.exe
```

(Or create a proper SDK project for modern workflow.)

## Linking Theory
See Intro docs:
- [Intro](/docs/en/modules/c-sharp/visual-programming-introduction)
- [Control Statements](/docs/en/modules/c-sharp/control-statements)
- [Strings](/docs/en/modules/c-sharp/strings)
- [Arrays](/docs/en/modules/c-sharp/arrays)
- [Methods](/docs/en/modules/c-sharp/methods)
- [OOP](/docs/en/modules/c-sharp/oop)