Chapter 1: Setup, .NET 10, and C# 14
Setup, .NET 10, and C# 14 Fundamentals, Setup, .NET 10, and C# 14 Syntax and Structure, Setup, .NET 10, and C# 14 Practical Example, Setup, .NET 10, and C# 14 Common Mistakes, Setup, .NET 10, and C# 14 Best Practices
Open chapterChapter 2: First Program and File-Based Apps
Opening Files, Reading Data, Writing Data, Paths and Resources, Error and Resource Handling
Open chapterChapter 3: Variables and Constants
Declaring Variables, Initialization, Scope, Constants/Readonly Values, Naming and Safety
Open chapterChapter 4: Built-in Types
Built-in Types, Type Conversion, Type Inference, Custom Types, Type Safety
Open chapterChapter 5: Operators and Expressions
Arithmetic Operators, Comparison Operators, Logical Operators, Assignment Operators, Precedence and Safe Use
Open chapterChapter 6: Console Input and Output
Console Input and Output Fundamentals, Console Input and Output Syntax and Structure, Console Input and Output Practical Example, Console Input and Output Common Mistakes, Console Input and Output Best Practices
Open chapterChapter 7: Strings
Creating Strings, Common String Operations, Searching and Comparing, Formatting and Conversion, Performance and Safety
Open chapterChapter 8: Conditions and switch
if, else if, switch, Conditional Expressions, Decision-Logic Best Practices
Open chapterChapter 9: Loops
for Loop, while Loop, do/foreach Variants, break and continue, Loop Design
Open chapterChapter 10: Methods
Declaring Methods, Parameters, Return Values, Overloading, Method Design
Open chapterChapter 11: Parameters and Return Values
Parameters and Return Values Fundamentals, Parameters and Return Values Syntax and Structure, Parameters and Return Values Practical Example, Parameters and Return Values Common Mistakes, Parameters and Return Values Best Practices
Open chapterChapter 12: Arrays
Declaring Arrays, Indexing Elements, Looping Through Arrays, Multidimensional Arrays, Array Safety and Common Errors
Open chapterChapter 13: Multidimensional and Jagged Arrays
Declaring Arrays, Indexing Elements, Looping Through Arrays, Multidimensional Arrays, Array Safety and Common Errors
Open chapterChapter 14: Collections
Creating Collections, Adding and Removing, Searching and Iterating, Sorting/Transforming, Choosing the Right Collection
Open chapterChapter 15: List, Dictionary, HashSet, Queue and Stack
List, Dictionary, HashSet, Queue and Stack Fundamentals, List, Dictionary, HashSet, Queue and Stack Syntax and Structure, List, Dictionary, HashSet, Queue and Stack Practical Example, List, Dictionary, HashSet, Queue and Stack Common Mistakes, List, Dictionary, HashSet, Queue and Stack Best Practices
Open chapterChapter 16: Classes and Objects
Declaring Classes, Fields and State, Methods and Behavior, Constructors, Encapsulation
Open chapterChapter 17: Constructors and Object Initialization
Creating Objects, Object State, Object Methods, Lifetime, Object Design
Open chapterChapter 18: Properties and Indexers
Index Purpose, Creating Indexes, Composite Indexes, Reading Execution Plans, Index Trade-offs
Open chapterChapter 19: Encapsulation and Access Modifiers
Encapsulation and Access Modifiers Fundamentals, Encapsulation and Access Modifiers Syntax and Structure, Encapsulation and Access Modifiers Practical Example, Encapsulation and Access Modifiers Common Mistakes, Encapsulation and Access Modifiers Best Practices
Open chapterChapter 20: Inheritance and Polymorphism
Base and Derived Types, Overriding Behavior, Polymorphism, Protected Members, Composition vs Inheritance
Open chapterChapter 21: Interfaces
Declaring Interfaces, Implementing Interfaces, Multiple Contracts, Default/Static Members, Interface Design
Open chapterChapter 22: Abstract Classes
Declaring Classes, Fields and State, Methods and Behavior, Constructors, Encapsulation
Open chapterChapter 23: Records and Record Structs
Records and Record Structs Fundamentals, Records and Record Structs Syntax and Structure, Records and Record Structs Practical Example, Records and Record Structs Common Mistakes, Records and Record Structs Best Practices
Open chapterChapter 24: Structs and Enums
Structs and Enums Fundamentals, Structs and Enums Syntax and Structure, Structs and Enums Practical Example, Structs and Enums Common Mistakes, Structs and Enums Best Practices
Open chapterChapter 25: Generics
Generic Types, Generic Functions/Methods, Constraints, Generic Collections, Generic Design
Open chapterChapter 26: Delegates
Delegates Fundamentals, Delegates Syntax and Structure, Delegates Practical Example, Delegates Common Mistakes, Delegates Best Practices
Open chapterChapter 27: Events
Events Fundamentals, Events Syntax and Structure, Events Practical Example, Events Common Mistakes, Events Best Practices
Open chapterChapter 28: Lambdas
Lambda Syntax, Parameters and Capture, Returning Values, Callbacks, Lambda Best Practices
Open chapterChapter 29: LINQ Fundamentals
LINQ Sources, Filtering, Projection, Grouping/Joining, Execution and Performance
Open chapterChapter 30: Advanced LINQ
LINQ Sources, Filtering, Projection, Grouping/Joining, Execution and Performance
Open chapterChapter 31: Nullable Reference Types
Built-in Types, Type Conversion, Type Inference, Custom Types, Type Safety
Open chapterChapter 32: Pattern Matching
Pattern Matching Fundamentals, Pattern Matching Syntax and Structure, Pattern Matching Practical Example, Pattern Matching Common Mistakes, Pattern Matching Best Practices
Open chapterChapter 33: Tuples and Deconstruction
Tuples and Deconstruction Fundamentals, Tuples and Deconstruction Syntax and Structure, Tuples and Deconstruction Practical Example, Tuples and Deconstruction Common Mistakes, Tuples and Deconstruction Best Practices
Open chapterChapter 34: Exceptions
Throwing Errors, Catching Errors, Finally/Cleanup, Custom Errors, Error-Handling Best Practices
Open chapterChapter 35: Files and Streams
Opening Files, Reading Data, Writing Data, Paths and Resources, Error and Resource Handling
Open chapterChapter 36: JSON and Serialization
JSON and Serialization Fundamentals, JSON and Serialization Syntax and Structure, JSON and Serialization Practical Example, JSON and Serialization Common Mistakes, JSON and Serialization Best Practices
Open chapterChapter 37: Regular Expressions
Regular Expressions Fundamentals, Regular Expressions Syntax and Structure, Regular Expressions Practical Example, Regular Expressions Common Mistakes, Regular Expressions Best Practices
Open chapterChapter 38: Date, Time, and Time Zones
Date, Time, and Time Zones Fundamentals, Date, Time, and Time Zones Syntax and Structure, Date, Time, and Time Zones Practical Example, Date, Time, and Time Zones Common Mistakes, Date, Time, and Time Zones Best Practices
Open chapterChapter 39: Span, Memory, and Performance
Memory Model, Allocation, Lifetime, Ownership/References, Performance and Safety
Open chapterChapter 40: Async and await
Asynchronous Basics, Starting Async Work, Awaiting Results, Error and Cancellation, Async Best Practices
Open chapterChapter 41: Tasks and Cancellation
Tasks and Cancellation Fundamentals, Tasks and Cancellation Syntax and Structure, Tasks and Cancellation Practical Example, Tasks and Cancellation Common Mistakes, Tasks and Cancellation Best Practices
Open chapterChapter 42: Parallel Programming
Parallel Programming Fundamentals, Parallel Programming Syntax and Structure, Parallel Programming Practical Example, Parallel Programming Common Mistakes, Parallel Programming Best Practices
Open chapterChapter 43: Synchronization and Thread Safety
Creating Threads, Shared State, Synchronization, Thread Safety, Threading Best Practices
Open chapterChapter 44: Reflection and Attributes
Reflection and Attributes Fundamentals, Reflection and Attributes Syntax and Structure, Reflection and Attributes Practical Example, Reflection and Attributes Common Mistakes, Reflection and Attributes Best Practices
Open chapterChapter 45: Extension Members and C# 14 Features
Extension Members and C# 14 Features Fundamentals, Extension Members and C# 14 Features Syntax and Structure, Extension Members and C# 14 Features Practical Example, Extension Members and C# 14 Features Common Mistakes, Extension Members and C# 14 Features Best Practices
Open chapterChapter 46: Dynamic and Expression Trees
Dynamic and Expression Trees Fundamentals, Dynamic and Expression Trees Syntax and Structure, Dynamic and Expression Trees Practical Example, Dynamic and Expression Trees Common Mistakes, Dynamic and Expression Trees Best Practices
Open chapterChapter 47: NuGet and Project Structure
NuGet and Project Structure Fundamentals, NuGet and Project Structure Syntax and Structure, NuGet and Project Structure Practical Example, NuGet and Project Structure Common Mistakes, NuGet and Project Structure Best Practices
Open chapterChapter 48: Testing C# Code
Unit Test Basics, Arrange-Act-Assert, Edge Cases, Mocks/Fakes Concepts, Automation and Coverage
Open chapterChapter 49: Logging, Configuration, and Dependency Injection
Logging, Configuration, and Dependency Injection Fundamentals, Logging, Configuration, and Dependency Injection Syntax and Structure, Logging, Configuration, and Dependency Injection Practical Example, Logging, Configuration, and Dependency Injection Common Mistakes, Logging, Configuration, and Dependency Injection Best Practices
Open chapterChapter 50: HTTP Clients and Networking
HTTP Fundamentals, Requests, Responses, Serialization, Errors and Resilience
Open chapterChapter 51: ASP.NET Core Fundamentals
ASP.NET Core Fundamentals Fundamentals, ASP.NET Core Fundamentals Syntax and Structure, ASP.NET Core Fundamentals Practical Example, ASP.NET Core Fundamentals Common Mistakes, ASP.NET Core Fundamentals Best Practices
Open chapterChapter 52: Minimal APIs
Minimal APIs Fundamentals, Minimal APIs Syntax and Structure, Minimal APIs Practical Example, Minimal APIs Common Mistakes, Minimal APIs Best Practices
Open chapterChapter 53: MVC and Razor Concepts
MVC and Razor Concepts Fundamentals, MVC and Razor Concepts Syntax and Structure, MVC and Razor Concepts Practical Example, MVC and Razor Concepts Common Mistakes, MVC and Razor Concepts Best Practices
Open chapterChapter 54: Web APIs and Validation
Web APIs and Validation Fundamentals, Web APIs and Validation Syntax and Structure, Web APIs and Validation Practical Example, Web APIs and Validation Common Mistakes, Web APIs and Validation Best Practices
Open chapterChapter 55: Entity Framework Core
Entity Framework Core Fundamentals, Entity Framework Core Syntax and Structure, Entity Framework Core Practical Example, Entity Framework Core Common Mistakes, Entity Framework Core Best Practices
Open chapterChapter 56: Authentication, Authorization, and Security
Threat Model, Input Validation, Authentication/Authorization, Secret Handling, Secure Defaults
Open chapterChapter 57: Desktop: WinForms and WPF Concepts
Desktop: WinForms and WPF Concepts Fundamentals, Desktop: WinForms and WPF Concepts Syntax and Structure, Desktop: WinForms and WPF Concepts Practical Example, Desktop: WinForms and WPF Concepts Common Mistakes, Desktop: WinForms and WPF Concepts Best Practices
Open chapterChapter 58: Cross-Platform .NET MAUI Concepts
Cross-Platform .NET MAUI Concepts Fundamentals, Cross-Platform .NET MAUI Concepts Syntax and Structure, Cross-Platform .NET MAUI Concepts Practical Example, Cross-Platform .NET MAUI Concepts Common Mistakes, Cross-Platform .NET MAUI Concepts Best Practices
Open chapterChapter 59: Interop, unsafe Code, and Native APIs
Interop, unsafe Code, and Native APIs Fundamentals, Interop, unsafe Code, and Native APIs Syntax and Structure, Interop, unsafe Code, and Native APIs Practical Example, Interop, unsafe Code, and Native APIs Common Mistakes, Interop, unsafe Code, and Native APIs Best Practices
Open chapterChapter 60: Architecture, Performance, Deployment, and Capstone
Architecture, Performance, Deployment, and Capstone Fundamentals, Architecture, Performance, Deployment, and Capstone Syntax and Structure, Architecture, Performance, Deployment, and Capstone Practical Example, Architecture, Performance, Deployment, and Capstone Common Mistakes, Architecture, Performance, Deployment, and Capstone Best Practices
Open chapter