All articles

#csharp

12 articles tagged csharp

Aug 11, 2026AI & LLMs

RAG Explained for .NET Developers: Build a Document Q&A System in C#

RAG C# implementation guide: chunking, embeddings, vector search and grounded prompts — build a document Q&A system in .NET with real code.

Intermediate5 min read
Aug 7, 2026.NET

Fixing the N+1 Query Problem in Entity Framework Core

Diagnose and fix the EF Core N+1 query problem with Include, projections and split queries — plus how to catch lazy-loading traps before production.

Intermediate4 min read
Aug 4, 2026AI & LLMs

Building Your First AI Chatbot in C# with Semantic Kernel

Semantic Kernel C# tutorial: build a chatbot with conversation memory, plugins, and streaming in ASP.NET Core — a complete working example for .NET devs.

Beginner4 min read
Jul 28, 2026.NET

Dependency Injection in .NET: Lifetimes, Captive Dependencies, and Other Traps

Understand .NET DI service lifetimes — singleton, scoped, transient — and avoid captive dependencies, memory leaks and threading bugs in ASP.NET Core.

Advanced5 min read
Jul 24, 2026AI & LLMs

Getting Started with Microsoft.Extensions.AI: One Interface for Every LLM in .NET

Microsoft.Extensions.AI tutorial: use IChatClient to swap OpenAI, Azure and Ollama models freely, add middleware, and future-proof your .NET AI code.

Intermediate4 min read
Jul 21, 2026.NET

Async/Await in C#: 8 Mistakes Even Experienced Developers Make

Learn the most common async await C# mistakes — async void, .Result deadlocks, missing ConfigureAwait and more — with fixes from production code.

Intermediate5 min read
Jul 15, 2026AI & LLMs

How to Call the OpenAI API from C#: A Complete Guide for .NET Developers

Step-by-step OpenAI API C# example: install the official SDK, send chat completions, stream responses, handle errors and costs — no Python required.

Beginner5 min read
Jan 19, 2025Fundamentals

Error Handling and Debugging in C#: Writing Robust and Reliable Code

Master error handling and debugging in C# programming. Learn about try-catch blocks, common exceptions, debugging techniques, and best practices for building reliable applications that handle unexpected situations gracefully.

Beginner14 min read
Jan 18, 2025Fundamentals

Introduction to Object-Oriented Programming in C#: Building with Classes and Objects

Discover the power of Object-Oriented Programming in C#. Learn about classes, objects, properties, constructors, and encapsulation with practical examples that make OOP concepts clear for beginners.

Beginner13 min read
Jan 17, 2025Fundamentals

Functions and Methods in C#: Building Reusable and Organized Code

Learn how to create functions and methods in C# to organize your code, avoid repetition, and build more maintainable programs. Perfect for beginners ready to structure their code professionally.

Beginner11 min read
Jan 16, 2025Fundamentals

Control Flow in C#: Making Your Programs Smart and Interactive

Learn how to make decisions and create loops in C# programming. Master if/else statements, switch statements, and loops to build dynamic, interactive programs that respond to different conditions.

Beginner9 min read
Jan 15, 2025Fundamentals

Understanding Variables and Data Types in C#: Your First Step into Programming

Learn the fundamentals of variables and data types in C# with clear examples. Perfect for programming beginners who want to understand how computers store and work with different kinds of information.

Beginner6 min read