languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2640 articles Updated Page 9 of 106
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 9 of 106
Newest first
-
General Performance: Object Initializers – Readability Versus Performance
dotNetTips.com Issue #522
The post discusses two methods for initializing objects in C#: traditional property assignment and object initializers. While the traditional method is slightly faster, object initializers enhance cod...
-
Auditing AI-Generated C# for Unsafe Code Contracts
C# Corner Issue #522
Audit AI-generated C# unsafe code. C# 15's new model clarifies safety contracts, making review critical for pointer, stackalloc, and interop code.
-
C# init Keyword: Cleaner Code Without Constructor Boilerplate
Medium Issue #522
Meta Description: Learn how C# init-only properties prevent bugs and remove constructor boilerplate. Complete guide with code examples for…
-
Benchmarking C# 15 Union Types in Real Applications
C# Corner Issue #521
Benchmark C# 15 union types in real apps. Explore performance, allocations, boxing, and compare with interfaces for production readiness.
-
Benchmarking MCP C# SDK 2.0 Under Concurrent Tool Workloads
C# Corner Issue #521
Benchmark MCP C# SDK 2.0 for .NET AI apps. Measure latency, throughput, concurrency, and resource usage under realistic tool workloads.
-
Benchmarking C# Async Tail-Await Optimizations in .NET 11
C# Corner Issue #521
Benchmark C# async tail-await optimizations in .NET 11 to measure their impact on asynchronous execution, latency, throughput, allocations, and runtime performance.
-
Delete Data in Bulk in Microsoft Dataverse Using C# and Web API
C# Corner Issue #520
Master Dataverse bulk data deletion using C# and Web API to optimize storage, boost performance, and manage costs efficiently.
-
Migrating MCP C# Servers from SDK 1.x to 2.0
C# Corner Issue #520
Migrate MCP C# servers from SDK 1.x to 2.0 with this guide. Learn about stateless HTTP, protocol negotiation, and API changes for a smooth transition.
-
Benchmarking Local Speech-to-Text with Foundry Local and C#
C# Corner Issue #520
Benchmark local speech-to-text with Microsoft Foundry Local and C#, comparing transcription latency, CPU usage, memory consumption, accuracy, and offline performance.
-
SOLID Principles in C#
Medium Issue #520
When a project is small, messy code still works. But as it grows, that mess starts to hurt because one small change breaks three other…
-
Implementing AI Memory in .NET Applications Using Semantic Kernel
C# Corner Issue #519
Unlock AI memory in .NET with Semantic Kernel. Learn about types, stores, and best practices for context-aware applications.
-
Mastering Async Concurrency in Enterprise AI: gather vs as_completed vs TaskGroup in LangGraph
C# Corner Issue #519
Master async Python for enterprise AI: gather, as_completed, TaskGroup in LangGraph for efficient ML inference and multi-agent concurrency.
-
Is Async/Await Killing Your App’s Performance?
Medium Issue #519
For a long time, I used async and await under the assumption that they were a 'magic button' to make my code faster. Continue reading on Deloitte UK Engineering Blog »
-
The Boolean Trick No C# Developer Knows About
YouTube Issue #519
Learn PostgreSQL for Free at Dometrain: https://dometrain.com/course/hands-on-learn-postgresql/?ref=nick-chapsas&promo=youtube Hello, everybody. I'm Nick, and in this video, I will introduce you to th...
-
Designing High-Throughput File Processing Pipelines with .NET Channels
C# Corner Issue #519
Design scalable .NET file processing pipelines with Channels. Learn producer-consumer, backpressure, and error handling for high throughput.
-
Scaling Business Logic with Rules Engines
blog.xeynergy.com Issue #518
Moving Beyond Complex If/Else Logic with NRules and .NET Continue reading on Xeynergy Blog »
-
Formalizing LLM Orchestration: A Deterministic Finite Automaton Engine via .NET
Medium Issue #518
Abstract
-
Azure Event Grid and Event Hubs in .NET: When to Use Each
Medium Issue #518
Azure offers three services with similar names but very different roles: Service Bus, Event Hubs, and Event Grid. Continue reading on CodeX »
-
Back to Basics: What String Concatenation Taught Me About Memory in C#
Medium Issue #518
Today, I went back to the basics. Nothing fancy. No advanced features. No design patterns. Just strings in C# and I’m glad I did.
-
20 LINQ Methods Every C# Developer Should Know (With Simple Examples)
Medium Issue #518
If you’re a C# developer, you’ve probably used LINQ dozens of times. But are you making the most of it?
-
Diving in OOP (Polymorphism and Inheritance – Part 1)
C# Corner Issue #518
Master C# method overloading and the params keyword in this hands-on OOP guide. Learn compile-time polymorphism with practical code examples.
-
Adding a Clone method to a C# record
Meziantou's blog Issue #518
Adding a Clone method to a C# record When using records, creating a copy with with is concise: var sample = new Sample("meziantou"); _ = sample with { }; public record Sample(string Value); This works...
-
Value Types vs Reference Types in C#: The Concept Every .NET Developer Must Master
C# Corner Issue #518
Master C# Value vs. Reference Types: Understand data storage, copying, and memory management for efficient .NET development.