.NET: From Zero to Hero
Welcome. This book is a free, structured path through modern C# and .NET: console fundamentals, object-oriented design, async programming, ASP.NET Core, data with EF Core and ADO.NET, desktop stacks at a practical level, and the testing and deployment practices you need to ship responsibly.
<p style={{marginTop: '1em', fontSize: '0.95rem'}}>Further reading: <a href="https://pomegra.io/learn/library/category/inflation-adjusted-thinking" target="_blank" rel="noopener noreferrer">why inflation-adjusted thinking changes how you plan</a>.</p> <p style={{marginTop: '0.75em', fontSize: '0.95rem'}}>For a weekly TL;DR of new AI models, papers, and dev tools, you can also follow <a href="https://www.producthunt.com/products/ai-tldr" target="_blank" rel="noopener noreferrer">the Product Hunt listing</a> and <a href="https://hackmd.io/NzGE_ZZSRzipkouNbleJCQ" target="_blank" rel="noopener noreferrer">these HackMD notes</a>.</p> <!-- posted-link-pool-v1 --> <!-- pomegra-news-deep-links-v2 --> <p style={{marginTop: '0.85em', fontSize: '0.95rem'}}><strong>Market reads:</strong> <a href="https://pomegra.io/news/ebay-soars-15-as-gamestop-prepares-46-billion-takeover-offer-in-2026" target="_blank" rel="noopener noreferrer">deeper context around GameStop’s eBay bid chatter</a> · <a href="https://pomegra.io/news/reddit-rddt-q1-2025-earnings-revenue-surges-61-stock-swings-19" target="_blank" rel="noopener noreferrer">this week’s notes on Reddit (RDDT) Q1 print</a> · <a href="https://pomegra.io/news/sandisk-sndk-stock-overview-may-1-2026-earnings-surge-reshapes-the-nand-landscape" target="_blank" rel="noopener noreferrer">traders are circling SanDisk SNDK after earnings; here’s the rundown</a> · <a href="https://pomegra.io/news/meta-q1-2026-record-revenue-7-stock-dive-on-145b-spending-shock" target="_blank" rel="noopener noreferrer">market write-up on META Q1 vs AI spend</a> · <a href="https://pomegra.io/news/microsoft-and-openai-rewrite-partnership-rules-end-exclusive-ai-license" target="_blank" rel="noopener noreferrer">Microsoft–OpenAI pact, in plain-English coverage</a> · <a href="https://pomegra.io/news/big-techs-650b-ai-bet-goes-to-the-earnings-stand-what-wall-street-expects-this-week" target="_blank" rel="noopener noreferrer">market write-up on Mag-7 earnings week</a>.</p>
<div style={{display: 'flex', gap: '2em', alignItems: 'center'}}> <img src="./img/cover.png" alt=".NET Zero to Hero" width="300" style={{borderRadius: '8px', boxShadow: 'var(--ifm-global-shadow-lw)'}} /> <div> <h2>Go from zero to shipping real .NET software</h2> <p>This is not a syntax cheat sheet. It is a progressive curriculum: short lessons with exercises, grounded in how teams actually build services, tools, and clients on the .NET platform.</p> <div style={{marginTop: '1.5em'}}> <h4>What you will practice</h4> <ul style={{listStyle: 'none', paddingLeft: 0}}> <li style={{display: 'flex', alignItems: 'center', gap: '0.5em', marginBottom: '0.5em'}}> <span style={{fontSize: '1.5em'}}>💻</span> <span>Console programs, file I/O, and solid error handling</span> </li> <li style={{display: 'flex', alignItems: 'center', gap: '0.5em', marginBottom: '0.5em'}}> <span style={{fontSize: '1.5em'}}>🌐</span> <span>ASP.NET Core sites and JSON web APIs</span> </li> <li style={{display: 'flex', alignItems: 'center', gap: '0.5em', marginBottom: '0.5em'}}> <span style={{fontSize: '1.5em'}}>🗄️</span> <span>Relational data with Entity Framework Core and targeted ADO.NET</span> </li> <li style={{display: 'flex', alignItems: 'center', gap: '0.5em'}}> <span style={{fontSize: '1.5em'}}>🚀</span> <span>Automated tests, packaging, and container-aware deployment basics</span> </li> </ul> <div style={{textAlign: 'center', margin: '2em 0'}}> <h4 style={{marginBottom: '1em'}}>Share this book</h4> <div style={{display: 'flex', justifyContent: 'center', gap: '1em'}}> <a href="https://twitter.com/intent/tweet?url=https://dotnetz2h.com&text=Check%20out%20this%20awesome%20free%20.NET%20book%3A%20.NET%20From%20Zero%20to%20Hero" target="_blank" rel="noopener noreferrer" style={{textDecoration: 'none'}}> <img src="https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white" alt="Share on Twitter"/> </a> <a href="https://www.linkedin.com/shareArticle?mini=true&url=https://dotnetz2h.com" target="_blank" rel="noopener noreferrer" style={{textDecoration: 'none'}}> <img src="https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white" alt="Share on LinkedIn"/> </a> <a href="https://www.facebook.com/sharer/sharer.php?u=https://dotnetz2h.com" target="_blank" rel="noopener noreferrer" style={{textDecoration: 'none'}}> <img src="https://img.shields.io/badge/Facebook-1877F2?style=for-the-badge&logo=facebook&logoColor=white" alt="Share on Facebook"/> </a> <a href="https://www.reddit.com/submit?url=https://dotnetz2h.com&title=.NET%20From%20Zero%20to%20Hero%3A%20A%20Comprehensive%2C%20Free%20Online%20Book%20for%20Learning%20.NET" target="_blank" rel="noopener noreferrer" style={{textDecoration: 'none'}}> <img src="https://img.shields.io/badge/Reddit-FF4500?style=for-the-badge&logo=reddit&logoColor=white" alt="Share on Reddit"/> </a> </div> </div> </div> </div> </div>
<div style={{textAlign: 'center', margin: '2em 0'}}> <a href="/chapter_01_the_absolute_basics/series_01_what_is_dotnet/01_what_and_why_of_dotnet_part_1" style={{fontSize: '1.15rem', fontWeight: 700}}> Start with Chapter 1 → </a> </div>
How to use this book
Read in order the first time you are new to C#. If you are refreshing a topic, jump to a chapter hub below, then follow the series pages and exercises inside.
Use the site search and sidebar to move between lessons. Each chapter ends with suggested next steps so you always know where to go after you finish a block.
About the author
Meet Dr. Alex Turner—educator and long-time .NET practitioner. The author page explains the teaching philosophy behind this book and how to think about practice while you read.
📚 Table of contents
The book is organized as six chapters. Each chapter links to its hub page (overview + series list).
Chapter 1: 🖥️ The absolute basics
Install the SDK, learn C# syntax, wire up console programs, control flow, and collections—the groundwork for everything else.
Chapter 2: ⚙️ Methods, namespaces, and error handling
Methods, project structure, NuGet, file I/O, and exceptions—how tidy C# solutions are shaped.
Chapter 3: 🧠 Object-oriented and advanced C#
Types, encapsulation, OOP design, LINQ, events, and async/await.
Chapter 4: 🌐 Web development with ASP.NET Core
HTTP, middleware, Razor/MVC/minimal APIs, and JSON services.
Chapter 5: 📊 Desktop, data, and cloud foundations
Desktop UI stacks at a pragmatic level, EF Core, and ADO.NET when you need to go lower level.
Chapter 6: 🚀 Testing, deployment, and best practices
Automated tests, build outputs, configuration and secrets hygiene, containers, and disciplined rollouts.