languages
C# Articles, Tutorials & News
C# articles, tutorials, and news from the DotNetNews archive.
2322 articles Updated Page 23 of 93
Browse additional C# articles from the DotNetNews archive.
C# articles
Page 23 of 93
Newest first
-
“This async method lacks ‘await’ operators and will run synchronously” — What It Really Means
mahraz-hasnat.medium.com Issue #385
If you work with C# and async/await, you’ve probably seen this warning:
-
Nerding out about covariance and immutability
blog.jermdavis.dev Issue #385
I've been working with C# most of my career, but every so often they add bits to the language which for some reason I've never really got to make use of. And "covariance" is one of those thi...
-
Getting Started with C# Programming: A Beginner’s Guide
medium.com Issue #385
Learn how to set up Visual Studio and understand the basic building blocks of C#
-
7 learnings from Anders Hejlsberg: The architect behind C# and TypeScript
news.google.com Issue #384
7 learnings from Anders Hejlsberg: The architect behind C# and TypeScript
-
Extract Pages from Word Documents Using C#
medium.com Issue #384
When working with Word documents, it’s common to run into situations where you don’t need the entire file. Sometimes you only want a…
-
Zookeeper with C#.NET — A Gentle, Deep, Example‑Driven Guide
medium.com Issue #384
6,500+ Tech Courses. Upgrade Your Skills — Free To Start! Continue reading on CodeToDeploy »
-
LINQ in EF Core Explained: From Lambda Expressions to SQL
benedictodoh.medium.com Issue #383
What is LINQ?
-
Value vs Reference Types: Why My ASP.NET Core Code Behaved Unexpectedly
medium.com Issue #383
Have you ever been puzzled why changing a variable sometimes changes another one, but other times it doesn’t? Or why your program’s memory…
-
7 learnings from Anders Hejlsberg: The architect behind C# and TypeScript
news.google.com Issue #383
7 learnings from Anders Hejlsberg: The architect behind C# and TypeScript
-
Extract Pages from Word Documents Using C#
medium.com Issue #383
When working with Word documents, it’s common to run into situations where you don’t need the entire file. Sometimes you only want a…
-
Repository Pattern in .NET (Simple, Async-Only Guide)
medium.com Issue #383
In well-structured .NET applications, persistence is an infrastructure concern. Once database logic bleeds into application or…
-
Prompt Engineering — Zero-Shot, One-Shot, Few-Shot & In-Context Learning
henriquesd.medium.com Issue #383
The way you write the prompt matters, so according to the output you expect, you can use the right technique, and this will reduce hallucinations and ensure that the model understands the context and ...
-
Zookeeper with C#.NET — A Gentle, Deep, Example‑Driven Guide
medium.com Issue #383
6,500+ Tech Courses. Upgrade Your Skills — Free To Start! Continue reading on CodeToDeploy »
-
C# Random: The Definitive Guide to Reliable Random Numbers in .NET
medium.com Issue #382
Generating random numbers in C# is a fundamental task that frequently surfaces during critical workflows for a .NET Developer. Whether…
-
Demystifying async/await in C#: The Hidden State Machine
c-sharpcorner.com Issue #382
Internal working on async/await in C#
-
.NET 10 and C# 14: The Game Has Changed
c-sharpcorner.com Issue #381
.NET 10 and C# 14: The Game Has Changed A principal engineer's perspective on why this release matters
-
Zeta: It’s Time to Rethink Validation in .NET
medium.com Issue #381
For most of my career, FluentValidation has been the unquestioned default for validation in .NET.
-
5 Most Confusing .NET Interview Questions – Explained for Beginners (With Simple Examples) (Part-1)
c-sharpcorner.com Issue #381
Ace your .NET interview! Demystifying async/await, dependency injection, service lifetimes, IEnumerable vs IQueryable, and middleware with clear examples. Master these fundamentals!
-
Events in C# Explained with a Real-World Example
c-sharpcorner.com Issue #381
Learn C# events with a real-world patient recovery scenario! Master the publisher-subscriber pattern, EventHandler<TEventArgs>, and build loosely coupled applications. Ideal for beginners!
-
String Performance: The Fastest Way to Get a String’s Length
dotnettips.wordpress.com Issue #380
Retrieving the character count of a string in .NET has various methods: using Span with Length, Length, or Enumerable.Count(). This article will prove which is the fastest method.
-
AddTransient vs AddScoped vs AddSingleton in .NET Core (With Examples)
medium.com Issue #380
Dependency Injection (DI) is a core feature of .NET Core. It helps create loosely coupled, testable, and maintainable applications.
-
Making foreach on an IEnumerable allocation-free using reflection and dynamic methods
andrewlock.net Issue #380
In this post I describe why foreach sometimes allocates, and show how you can use DynamicMethod and Reflection.Emit to go allocation-free
-
How to Remove Specific or Blank Pages from Word Using C# (A Step-by-Step Guide)
medium.com Issue #380
When working with Word documents, one problem we often encounter is unwanted pages — blank pages at the end of a report, cover pages we…
-
Create your own Roslyn Analyzer !!
medium.com Issue #380
As the title indicates, today we are going to talk about code analyzers and more precisely Roslyn Analyzers, the famous .net compiler. The…
-
Factory Method Pattern in C#
c-sharpcorner.com Issue #379
Learn how to implement the Factory Method Pattern in C# with dependency injection for loosely coupled object creation. Improve code maintainability and extensibility.