---
title: "#glass articles | Hashnode"
description: "Explore 48 articles tagged #glass on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/glass"
---

Tag

# #glass

48 posts · 5 followers

[Zero Heartbeat](https://hashnode.com/@clustron) · [2d ago](https://hashnode.com/posts/how-glass-rebuilds-an-async-iterator-state-machine/6b014c2537de34e07bf76956)

### [How Glass rebuilds an async iterator state machine](https://delta1labs.hashnode.dev/how-glass-rebuilds-an-async-iterator-state-machine?utm_source=hashnode&utm_medium=feed)

Write the smallest async IAsyncEnumerable<T> method you can — a loop that awaits something and yields a value — and then open the compiled assembly. The method you wrote is gone. In its place is a nes

10 min read · [delta1labs.hashnode.dev](https://delta1labs.hashnode.dev/how-glass-rebuilds-an-async-iterator-state-machine?utm_source=hashnode&utm_medium=feed)

[Zero Heartbeat](https://hashnode.com/@clustron) · [4d ago](https://hashnode.com/posts/how-glass-rebuilds-nested-generic-type-names/6afeaef3b496160e5ea0476f)

### [How Glass rebuilds nested generic type names](https://delta1labs.hashnode.dev/how-glass-rebuilds-nested-generic-type-names?utm_source=hashnode&utm_medium=feed)

Decompile a type nested inside a generic type and the name you get back — Outer<int, string>.Inner<bool> — looks nothing like the name stored on disk. The metadata holds Inner1\`, with a backtick and a

9 min read · [delta1labs.hashnode.dev](https://delta1labs.hashnode.dev/how-glass-rebuilds-nested-generic-type-names?utm_source=hashnode&utm_medium=feed)

[Zero Heartbeat](https://hashnode.com/@clustron) · [4d ago](https://hashnode.com/posts/how-glass-reads-a-methods-exception-regions/6afe5a66192c360e920d8e26)

### [How Glass reads a method''s exception regions](https://delta1labs.hashnode.dev/how-glass-reads-a-methods-exception-regions?utm_source=hashnode&utm_medium=feed)

Open any method with a try block in a decompiler's IL view and look for the try. You will not find it. There is no "begin try" opcode, no "catch" instruction, nothing in the instruction stream that sa

9 min read · [delta1labs.hashnode.dev](https://delta1labs.hashnode.dev/how-glass-reads-a-methods-exception-regions?utm_source=hashnode&utm_medium=feed)

[Zero Heartbeat](https://hashnode.com/@clustron) · [4d ago](https://hashnode.com/posts/how-glass-reads-a-vararg-method/6afe30e3329bcc6b7eb0f454)

### [How Glass reads a vararg method](https://delta1labs.hashnode.dev/how-glass-reads-a-vararg-method?utm_source=hashnode&utm_medium=feed)

Most C# developers never type \_\_arglist, and that is exactly why it is confusing when a decompiler shows it to you. You open a low-level interop shim in Glass.NET, and instead of a tidy params array y

8 min read · [delta1labs.hashnode.dev](https://delta1labs.hashnode.dev/how-glass-reads-a-vararg-method?utm_source=hashnode&utm_medium=feed)

[Zero Heartbeat](https://hashnode.com/@clustron) · [4d ago](https://hashnode.com/posts/what-a-strong-name-signature-actually-proves/6afe09f12766cbd829b78cc2)

### [What a strong-name signature actually proves](https://delta1labs.hashnode.dev/what-a-strong-name-signature-actually-proves?utm_source=hashnode&utm_medium=feed)

You open an assembly in Glass.NET and the identity line reads MyLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a5b2c8d4e6f70819. It is easy to read that token as two guarantees at once: that th

9 min read · [delta1labs.hashnode.dev](https://delta1labs.hashnode.dev/what-a-strong-name-signature-actually-proves?utm_source=hashnode&utm_medium=feed)

[Zero Heartbeat](https://hashnode.com/@clustron) · [5d ago](https://hashnode.com/posts/how-a-decompiler-reads-a-covariant-override/6afddd854321e0ec32915f3c)

### [How a decompiler reads a covariant override](https://delta1labs.hashnode.dev/how-a-decompiler-reads-a-covariant-override?utm_source=hashnode&utm_medium=feed)

C# 9 let you write the override everyone had wanted for twenty years: a Clone() on Dog that returns Dog, not Animal. It reads like a triviality. Underneath it is one of the few places where the C# com

8 min read · [delta1labs.hashnode.dev](https://delta1labs.hashnode.dev/how-a-decompiler-reads-a-covariant-override?utm_source=hashnode&utm_medium=feed)

[Zero Heartbeat](https://hashnode.com/@clustron) · [5d ago](https://hashnode.com/posts/decompiling-a-vbnet-assembly-to-c/6afdb5de257f8899495042f3)

### [Decompiling a VB.NET assembly to C#](https://delta1labs.hashnode.dev/decompiling-a-vbnet-assembly-to-c?utm_source=hashnode&utm_medium=feed)

You inherit a .dll. It is part of a line-of-business app that has run for fifteen years, the source was last seen on a developer's machine that was decommissioned a decade ago, and the only clue to it

9 min read · [delta1labs.hashnode.dev](https://delta1labs.hashnode.dev/decompiling-a-vbnet-assembly-to-c?utm_source=hashnode&utm_medium=feed)

[Zero Heartbeat](https://hashnode.com/@clustron) · [6d ago](https://hashnode.com/posts/how-a-decompiler-recognizes-a-custom-collection-builder/6afc0c03acabd15db72dcfbd)

### [How a decompiler recognizes a custom collection builder](https://delta1labs.hashnode.dev/how-a-decompiler-recognizes-a-custom-collection-builder?utm_source=hashnode&utm_medium=feed)

Collection expressions were sold as syntax sugar, but the interesting part is that the sugar is extensible. Put \[CollectionBuilder\] on a type and \[1, 2, 3\] will build an instance of it. The catch, for

8 min read · [delta1labs.hashnode.dev](https://delta1labs.hashnode.dev/how-a-decompiler-recognizes-a-custom-collection-builder?utm_source=hashnode&utm_medium=feed)

[Zero Heartbeat](https://hashnode.com/@clustron) · [6d ago](https://hashnode.com/posts/how-glass-rebuilds-a-c-14-extension-block/6afbe1328bc7d467ed2a1a47)

### [How Glass rebuilds a C# 14 extension block](https://delta1labs.hashnode.dev/how-glass-rebuilds-a-c-14-extension-block?utm_source=hashnode&utm_medium=feed)

C# 14 finally let you write list.IsEmpty and Point.Origin where IsEmpty and Origin are your additions to types you do not own. The classic this-parameter trick could never do that — it only ever added

7 min read · [delta1labs.hashnode.dev](https://delta1labs.hashnode.dev/how-glass-rebuilds-a-c-14-extension-block?utm_source=hashnode&utm_medium=feed)

[Zero Heartbeat](https://hashnode.com/@clustron) · [6d ago](https://hashnode.com/posts/how-a-decompiler-reads-c-interceptors/6afbb6cda9686f97f049a11b)

### [How a decompiler reads C# interceptors](https://delta1labs.hashnode.dev/how-a-decompiler-reads-c-interceptors?utm_source=hashnode&utm_medium=feed)

You decompile a release build, open Program.cs, and find a call that no longer goes where the source said it would. The code reads client.GetForecast("NYC"), but the IL calls a static method in a gene

8 min read · [delta1labs.hashnode.dev](https://delta1labs.hashnode.dev/how-a-decompiler-reads-c-interceptors?utm_source=hashnode&utm_medium=feed)
