languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2466 articles Updated Page 54 of 99
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 54 of 99
Newest first
-
Default keyword in C#
medium.com Issue #280
Have you ever been in a situation where you needed to initialize a variable but didn’t have a specific starting value for it yet? Maybe…
-
dotnet actions: C# scripting to the rescue
cazzulino.com Issue #280
What a monumental release for .NET scripting is .NET 10! The long journey that started with C# 9 top-level programs has finally culminated in a full-fledged scripting experience that leverages the ent...
-
Span and Memory in C#: Complete Guide to Zero-Allocation Performance in .NET
levelup.gitconnected.com Issue #280
Discover how Span<T> and Memory<T> revolutionize performance in .NET by eliminating unnecessary allocations. A comprehensive technical… Continue reading on Level Up Coding »
-
C# Tip: injecting and testing the current time with TimeProvider and FakeTimeProvider
code4it.dev Issue #280
Dates used to be difficult to test. But with TimeProvider and FakeTimeProvider, everything becomes possible!
-
Cancel requests correctly in C#
medium.com Issue #280
A short video I saw recently made me laugh — but also wince a little. It reminded me of how often we, as .NET developers, forget to cancel…
-
Stop Wasting Time: These .NET Packages Do the Hard Work for You
blog.stackademic.com Issue #280
Another carefully curated batch of hidden C# libraries That Do the Work, So You Can Take the Credit Continue reading on Stackademic »
-
Mastering Advanced LINQ in C# (Part 2) — Grouping, Joins, Nesting & Parallel Queries
frontend2backend.medium.com Issue #280
If you’re a C# developer, you already know that LINQ (Language Integrated Query) is one of the most powerful features in the .NET…
-
Handle Nulls Like a Pro: 6 Smarter Alternatives to Null-Forgiving in C#
medium.com Issue #280
Using the null-forgiving operator (!) too often usually points to a problem. Here are safer and cleaner ways to avoid it.
-
IEnumerable vs IQueryable in C#: The Key Differences
medium.com Issue #279
If you’ve been coding in C# for a while, you’ve probably bumped into IEnumerable and IQueryable.
-
The Hidden Performance Traps in C# You’re Probably Ignoring
medium.com Issue #279
C# and the .NET runtime provide a modern, safe, and powerful development platform. However, performance pitfalls are everywhere — even in…
-
From JavaScript to C#: A Developer’s Guide to Transitioning from JavaScript to C# and .NET
javascript.plainenglish.io Issue #279
As a JavaScript developer, you might be used to dynamic typing, flexible syntax, and event-driven programming. However, what happens when… Continue reading on JavaScript in Plain English »
-
Why You Should Care About C#’s ‘Nullable Reference Types’
medium.com Issue #279
and How They Help Prevent Null-Related Errors Continue reading on Coinmonks »
-
Dependency Injection (DI) in .NET Core
medium.com Issue #279
For example : Continue reading on easydotnet »
-
Partial View vs ViewComponent in ASP.NET MVC/Core – A Complete Guide
c-sharpcorner.com Issue #279
Unlock the secrets of Partial Views and ViewComponents in ASP.NET MVC/Core! This guide dives deep into their differences, exploring usage, performance, and best-use cases. Learn when to use each for o...
-
Why ValueTask Can Save You from Async Overhead
mariemoalla.medium.com Issue #279
Asynchronous programming in C# is built on top of the Task and async/await model. For most scenarios, using Task is perfectly fine. But if…
-
Address Resolution Protocol (ARP) in Networking: How It Works
c-sharpcorner.com Issue #279
Unlock the secrets of ARP (Address Resolution Protocol)! This guide explains how ARP translates IP addresses to MAC addresses, enabling seamless communication on local networks. Learn about ARP reques...
-
The $2,000 Line of C# I Shouldn’t Have Written
towardsdev.com Issue #279
Why This Blog Matters Continue reading on Towards Dev »
-
The case of the crash on a null pointer even though we checked it for null
devblogs.microsoft.com Issue #279
A colleague was investigating a crash. The stack at the point of the crash looks like this: contoso!winrt::impl::consume_Windows_Foundation_Collections_IVectorView< winrt::Windows::Foundation::Coll...
-
What is the difference between linear and non-linear data structures?
c-sharpcorner.com Issue #279
Unlock the power of Data Structures and Algorithms (DSA) by understanding the core difference between linear and non-linear data structures. This guide breaks down the sequential nature of arrays, lin...
-
Using and authoring .NET tools
andrewlock.net Issue #279
In this post I describe some of the complexities around authoring .NET tools, specifically around supporting multiple .NET runtimes and testing in CI
-
Three Dots, Never the Same
medium.com Issue #278
3 dot years ago, today:
-
The C# Keyword That Makes Your Exceptions Free (But Nobody Uses It)
medium.com Issue #278
Why This Blog Matters Continue reading on Dev Genius »
-
If you need to generate realistic fake data in C#, try this library
medium.com Issue #278
From time to time, you may need to populate data in your database — for testing or just for mocking. Bogus gives us a simple way to do…
-
Top 10 Modern C# Performance Features That Made My .NET Apps 3x Faster
medium.com Issue #278
As a .NET developer working in high-stakes domains like legal practice management and insurance verification systems, performance isn’t… Continue reading on ILLUMINATION’S MIRROR »
-
The Union Revolution in C#: Closed Hierarchies, Case Declarations, and Safer APIs
medium.com Issue #278
If you’ve ever wished your C# code could precisely model “one of these types, but never anything else”, discriminated unions are about to…