This repository contains my personal journey through C# 14 and .NET 10. Here, I document my progress in software engineering fundamentals, focusing on clean code, modern syntax, and logic exercises.
The project is divided into two main sections: theory-focused fundamentals and practical activities.
This folder contains isolated exercises to master the core language syntax.
01-hello-world.cs: Introduction to Top-Level Statements.01.1-formatting-text.cs: Formatting strings and output.02-variables-types.cs: Exploration of primitive types and strong typing.02.1-variables-types.cs: Advanced variable declarations and type inference withvar.03-statements-expressions.cs: Logic structures and C# expressions.04-input-user.cs: Capturing and handling user input from the console.05-operators.cs: Arithmetic operations and operator precedence.06-if-else-statements.cs: Decision-making flow and conditional logic.07-loops-basics.cs: Iteration structures (for, while, foreach).08-comparison-logic.cs: Boolean logic and data comparison.09-ternary-operator.cs: Using the ternary conditional operator for concise logic
Practical challenges where I combine multiple fundamentals to solve real-world problems.
- 01-budget-validator.cs: A project budget calculator that uses
double.TryParsefor safety, arithmetic operators for cost calculation, and complexif-elsechains to determine financial feasibility. - 02-text-formating.cs: A text formatting tool that demonstrates string manipulation, interpolation, and conditional logic to format user input dynamically.
- Language: C# 14
- Framework: .NET 10
- Key Concepts Applied:
- Null Safety: Using
??and null-coalescing operators to preventNullReferenceException. - Data Parsing: Safe type conversion with
TryParse. - Clean Code: Meaningful variable naming and structured documentation (XML Comments).
- Ensure you have the .NET 10 SDK installed.
- Clone the repository:
git clone https://github.com/jamerson-mt/learning-csharp.git
- Navigate to the file folder and run:
dotnet run filename.cs
