ZZero Heartbeat·5h agoRecovering checked user-defined operatorsC# 11 added a small piece of syntax with a surprising amount of machinery behind it. A type can now declare what + does when the surrounding code is overflow-checked, separately from what it does by d9 min read·delta1labs.hashnode.dev
ZZero Heartbeat·11h agoWhat pointer arithmetic looks like decompiledPointer code in C# is dense with syntax: the * dereference, the & address-of, the [i] indexer, the -> arrow. None of it survives to IL. A method full of unsafe pointer work compiles to a flat stream o9 min read·delta1labs.hashnode.dev
ZZero Heartbeat·17h agoHow local functions decompile in C#Add a small helper function inside a method, compile it, and open the assembly. The helper is not inside anything — it sits on the containing type as a private method with a name you could never type:11 min read·delta1labs.hashnode.dev
ZZero Heartbeat·Nov 24How deconstruction decompiles back to C#Modern C# lets you unpack a value in one line: var (x, y) = point;. It reads like a primitive — as if the CLR knew how to split a Point into two integers. It does not. There is no deconstruction opcod7 min read·delta1labs.hashnode.dev
ZZero Heartbeat·Nov 15Resolve references from a NuGet lockfile in Glass.NETA decompiler earns your trust one reference at a time. Open an assembly that stands entirely on its own and the C# comes back clean. Open a real one — a service that leans on a dozen NuGet packages —9 min read·delta1labs.hashnode.dev
ZZero Heartbeat·Nov 15How allows ref struct decompiles in .NETMost C# language features leave a trail in the instruction stream. An async method becomes a state machine you can single-step; a yield return becomes a MoveNext with a jumped-to label; even a using i9 min read·delta1labs.hashnode.dev
ZZero Heartbeat·Nov 12How boxing and unboxing decompile in C#An implicit conversion from int to object is one of the quietest expensive things in C#. You write object o = n; — no cast, no ceremony — and a heap allocation happens. The C# says nothing about it. T8 min read·delta1labs.hashnode.dev
ZZero Heartbeat·Nov 12Reading top-level statements in decompiled C#A C# file that uses top-level statements looks like it has no class and no Main — you just write statements and the program runs. But an assembly has to have an entry point, and the metadata has to na7 min read·delta1labs.hashnode.dev
ZZero Heartbeat·Nov 12Decompile .NET from the command line or an AI assistantGlass.NET is a free .NET decompiler built around navigation — you open an assembly and read it like your own source. But plenty of the work you do with a decompiler isn't interactive at all. You want8 min read·delta1labs.hashnode.dev
ZZero Heartbeat·Nov 10How function pointers decompile in C#Function pointers are the one place in modern C# where the language hands you something the runtime has always had but almost never exposed: a call through a raw code address, with no object in sight.8 min read·delta1labs.hashnode.dev