Welcome to the C# MiniLessons repository! This repository contains concise and focused lessons covering various advanced topics in C#. Currently, the lessons revolve around "Source Generation" and "Parsing Strings to C# Code using Roslyn Compiler."
In this section, you'll learn about the concept of source generation in C#. Source generation allows you to generate C# source code at compile time, enabling powerful scenarios such as automatic code generation, reducing boilerplate, and enhancing performance.
- Writing Source Generators in C#
- Practical Use Cases
This section delves into leveraging the Roslyn compiler to parse strings into executable C# code. Roslyn, the open-source .NET Compiler Platform, enables dynamic code generation and manipulation, providing insights into the inner workings of the C# compiler.
- Understanding Roslyn Compiler API
- Converting Strings to Syntax Trees
To explore these lessons, clone this repository to your local machine and navigate to each lesson's directory. Each lesson includes code samples, explanations, and exercises to reinforce your understanding.
git clone https://github.com/Ahmed-Muhammed-Youssef/CSharp-Mini-lessons.git
cd CSharp-Mini-lessons