Menu

#DevtoCsharp

139 posts

Feed·
20 of 139 posts
Task.Delay vs Thread.Sleep: 100 Waiting Tasks Took 1 Second or 5 Seconds
🖼️
0Read More

Task.Delay vs Thread.Sleep: 100 Waiting Tasks Took 1 Second or 5 Seconds

DEV Community: csharp·Dhana·21 days ago
#dfudHcLY
#devtocsharp#devto#dev#thread#task

In my last article, 100 simulated one-second waits finished in about one second. That worked because...

15s
Stop Hand-Rolling Full Outer Joins in LINQ. .NET 11 Has FullJoin
📰
0Read More

Stop Hand-Rolling Full Outer Joins in LINQ. .NET 11 Has FullJoin

DEV Community: csharp·JKC·21 days ago
#8OyDcSVh
#devtocsharp#devto#dev#linq#article

.NET 11 adds LINQ FullJoin and tuple-returning Join overloads, so reconciling two lists is one call with no result selector.

15s
Decompiling C# string interpolation and interpolated string handlers
🖼️
0Read More

Decompiling C# string interpolation and interpolated string handlers

DEV Community: csharp·Zero Heartbeat·21 days ago
#LoJWAB27
#devtocsharp#devto#dev#string#handler

An interpolated string has no IL of its own — the compiler picks one of three completely different lowerings depending on your target framework, the hole types, and whether a method opted into a handler.…

15s
I didn't write this Excel formula engine. Here is why I trust it anyway
🖼️
0Read More

I didn't write this Excel formula engine. Here is why I trust it anyway

DEV Community: csharp·Mark·21 days ago
#XGg48nyk
#devtocsharp#devto#dev#name#value

SharpCell.Grid running in the browser. Try it with your own .xlsx: live demo Disclosure: SharpCell's...

15s
Decompiling C# expression trees: the lambda that became a tree of factory calls
🖼️
0Read More

Decompiling C# expression trees: the lambda that became a tree of factory calls

DEV Community: csharp·Zero Heartbeat·21 days ago
#NLHeuI2f
#devtocsharp#devto#dev#expression#lambda

The same `x => x + 1` compiles two completely different ways depending on the type it is assigned to. As a delegate it is a hidden method and an ldftn; as an Expression > it is a nest of Expression.Parameter, Expression.Constant, Expression.Add and…

15s
ASP.NET Core Authentication Endpoints: Why I Built AuthEndpoints
🖼️
0Read More

ASP.NET Core Authentication Endpoints: Why I Built AuthEndpoints

DEV Community: csharp·Oga·21 days ago
#aqVR5dsk
#devtocsharp#devto#dev#auth#authendpoints

ASP.NET Core wires up auth middleware but no login, register, refresh or 2FA endpoints. AuthEndpoints 4 adds them with cookies, JWT and passkeys.

15s
My 'Cached' Endpoint Ran the Handler Ten Times Anyway
🖼️
0Read More

My 'Cached' Endpoint Ran the Handler Ten Times Anyway

DEV Community: csharp·Sukhpinder Singh·21 days ago
#e514CEgR
#devtocsharp#devto#dev#output#handler

A Cache-Control header is a note to the browser; it does nothing on the server. Here is a hit-counter experiment showing why output caching is the one that actually stops the work.

15s
How Fixing My AI Coding Pitfalls Rescued My .NET Development Time
🖼️
0Read More

How Fixing My AI Coding Pitfalls Rescued My .NET Development Time

DEV Community: csharp·itysu tur·6 months ago
#20uvCL1Q
#dev#code#copilot#context#orders

How Fixing My AI Coding Pitfalls Rescued My .NET Development Time Everyone talks about AI...

15s
How to stop Cursor AI forgetting your .NET architecture (the $9 fix)
🖼️
0Read More

How to stop Cursor AI forgetting your .NET architecture (the $9 fix)

DEV Community: csharp·agentic.standard.contact·6 months ago
#f9qCcvcJ
#dev#cursor#rules#every#context

Cursor AI forgets your DI patterns, Clean Architecture boundaries, and EF Core conventions every session. Here's a 4-rule persistence framework that locks your architecture into the AI's long-term memory — install in 60 seconds.

15s
How to use Cursor AI with Entity Framework Core (without blowing up your database)
🖼️
0Read More

How to use Cursor AI with Entity Framework Core (without blowing up your database)

DEV Community: csharp·agentic.standard.contact·6 months ago
#g9JGnhm8
#dev#cursor#core#rule#include

Cursor AI is a powerful .NET assistant — but left ungoverned, it generates N+1 queries, eager-loads entire databases, and skips AsNoTracking on read-only endpoints.…

15s