Skip to main content
SEMastery

.NET Core

Explore .net core topics and best practices in the .NET ecosystem.

Level:
32 articles
beginner

How to Write Elegant Code with C# Pattern Matching

Learn C# pattern matching the easy way. Use is, switch expressions, property and list patterns to write clean, readable, and elegant .NET code.

11 mincsharp · pattern-matching
beginner

C# yield return Statement: A Simple Guide With Real Examples

Learn the C# yield return statement the easy way. Understand iterators, lazy evaluation, and deferred execution with simple examples, diagrams, and tables.

11 minC# · yield return
beginner

Functional Programming in C#: The Practical Parts You Will Actually Use

A warm, beginner-friendly guide to functional programming in C#: records, immutability, pattern matching, switch expressions, pure functions, and LINQ.

12 minC# · functional programming
beginner

How to Apply Functional Programming in C#: A Beginner's Guide

Learn functional programming in C# the simple way: pure functions, immutability, records, LINQ, pattern matching, and composition with friendly examples.

13 mincsharp · functional-programming
beginner

Building File-Based Apps in .NET With Multi-File Support

Learn how to run C# without a project file using dotnet run app.cs in .NET 10, split code across files with #:include, and add packages with directives.

11 mindotnet 10 · file-based apps
beginner

New Features in C# 13: A Friendly Beginner's Guide

Learn the new features in C# 13 with simple words, real-life examples, diagrams, and code you can read in minutes. Great for beginners.

11 mincsharp · dotnet
beginner

10 Reasons to Upgrade to .NET 9: A Friendly Guide for Developers

Ten simple, real reasons to upgrade your app to .NET 9 — faster runtime, smaller Docker images, smarter GC, new LINQ, AI helpers and more.

12 min.NET 9 · upgrade
beginner

Exploring C# File-Based Apps in .NET 10: Run a Single .cs File

Learn how C# file-based apps in .NET 10 let you run a single .cs file with dotnet run, add packages with directives, and grow into a full project.

11 mindotnet-10 · csharp
beginner

Mastering Exception Handling in C#: A Comprehensive Guide

Learn C# exception handling the friendly way: try, catch, finally, custom exceptions, filters, throw vs throw ex, and real best practices for .NET 10.

11 mincsharp · exceptions
beginner

Getting Started with C# Records: A Beginner's Friendly Guide

Learn C# records the easy way: value equality, with expressions, positional syntax, and record struct, explained with simple real-life examples.

11 mincsharp · records
intermediate

Why I Switched to Primary Constructors for DI in C#

A friendly guide on why primary constructors made my C# dependency injection cleaner, with simple examples, diagrams, tables, and honest trade-offs.

12 mincsharp · primary-constructors
beginner

What's New in .NET 7: A Friendly Guide for Beginners

A simple, student-friendly tour of the biggest .NET 7 features: speed boosts, Native AOT, C# 11, rate limiting, and minimal API upgrades.

11 mindotnet-7 · csharp-11
beginner

5 Awesome C# Refactoring Tips to Write Cleaner Code

Learn 5 simple C# refactoring tips with examples in modern C# 14. Make your code cleaner, safer, and easier to read using guard clauses and more.

11 mincsharp · refactoring
beginner

Creating Custom Attributes in C#: A Beginner's Guide

Learn to create custom attributes in C# from scratch. Use AttributeUsage, attach extra info to your code, and read it back with reflection. Simple examples.

11 mincsharp · attributes
intermediate

Dynamic Code Execution in .NET with C# Eval Expression

Learn how to run C# code at runtime using the C# Eval Expression library with simple Execute and Compile examples for beginners.

12 mindotnet · csharp
beginner

How to Write Elegant Code With C# Switch Expressions

Learn C# switch expressions the easy way. Master pattern matching with type, relational, property, and list patterns using simple examples, diagrams, and tables.

12 minC# · switch expressions
beginner

How to Create Command-Line Console Applications in .NET

A beginner-friendly guide to building command-line console apps in .NET 10 with the dotnet CLI, arguments, options, and System.CommandLine.

11 mindotnet-10 · console
beginner

Improving Code Quality in C# With Static Code Analysis

Learn how static code analysis with Roslyn analyzers, EditorConfig, and StyleCop helps you write cleaner, safer C# in .NET 10 with simple examples.

11 mincsharp · static-analysis
beginner

Records, Anonymous Types, and Non-Destructive Mutation in C#

Learn C# records, anonymous types, and non-destructive mutation with the with expression using simple words, real-life examples, and clear diagrams.

11 mincsharp · records
beginner

Run C# Scripts With dotnet run app.cs: No Project Files Needed

Learn to run C# scripts with dotnet run app.cs in .NET 10 — no project files, no setup. Add NuGet packages, pass arguments, and automate tasks fast.

13 mindotnet-10 · csharp
beginner

Why I Write Tall LINQ Queries: Readable C# Pipelines

Learn why writing tall, one-operator-per-line LINQ queries in C# makes your code easier to read, debug, and review. Beginner friendly with diagrams.

12 mincsharp · dotnet
beginner

The New LINQ Methods from .NET 6 to .NET 9: A Friendly Guide

Learn the new LINQ methods added in .NET 6, 7, 8 and 9 with simple words, real-life examples, diagrams and clean C# code. Great for beginners.

11 mincsharp · dotnet
beginner

Improve Code Readability with C# Collection Expressions

Learn C# collection expressions and the spread element with simple analogies, diagrams, and code. Write cleaner arrays, lists, and spans in modern .NET.

11 mincsharp · dotnet
intermediate

From Anemic Models to Behavior-Driven Models: A Practical DDD Refactor in C#

Learn to refactor anemic C# classes into rich, behavior-driven domain models using DDD. A simple, step-by-step guide with diagrams and real code.

12 mincsharp · ddd
intermediate

Building High-Performance .NET Apps With C# Channels

Learn C# Channels in .NET 10 with simple examples. Pass data safely between producers and consumers and build fast, smooth, high-performance apps.

12 mindotnet · csharp
beginner

Implementing AES Encryption with C#: A Beginner-Friendly Guide

Learn AES encryption in C# step by step, with AES-GCM, AES-CBC, key derivation, and safe code examples explained simply for beginners.

13 minaes · encryption
beginner

Getting Started with Primary Constructors in .NET 8 and C# 12

Learn C# 12 primary constructors in .NET 8 the easy way: cleaner classes, fewer lines, dependency injection, and simple real-life examples for beginners.

12 mincsharp · primary-constructors
beginner

C# init-only and required Properties: A Beginner's Guide

Learn C# init-only and required properties with simple analogies, diagrams, and code. Build safe, immutable objects that are filled correctly every time.

12 mincsharp · dotnet
intermediate

Extension Members in C# 14: A Friendly, Complete Guide for Beginners

Learn C# 14 extension members in simple words. Add properties, static members, and operators to types you do not own, with clear examples and diagrams.

11 mincsharp14 · dotnet10
intermediate

C# 15 Union Types: The Easy Guide With Real Examples

Union types in C# 15 (.NET 11) let one method safely return one of many shapes. Learn how they work with simple, real-life examples, diagrams, and a clear comparison with OneOf.

14 minC# 15 · .NET 11
beginner

Central Package Management in .NET: Simplify NuGet Dependencies

Learn Central Package Management (CPM) in .NET to manage all NuGet versions in one Directory.Packages.props file. Simple guide with diagrams and examples.

12 minCentral Package Management · NuGet
beginner

The 3 C# PDF Libraries Every Developer Must Know

A friendly guide to QuestPDF, PDFsharp, and iText for C#. Learn what each does, their licensing, code examples, and how to pick the right one.

12 minPDF · C#