Menu

#DevtoCsharp

133 posts

Feed·
12 of 133 posts
Decompiling C# string interpolation and interpolated string handlers
🖼️
0Read More

Decompiling C# string interpolation and interpolated string handlers

DEV Community: csharp·Zero Heartbeat·about 13 hours 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·about 13 hours 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·about 13 hours 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·about 13 hours 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·about 13 hours 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