---
title: "Discussion on \"How a switch on strings decompiles in C#\" | Hashnode"
description: "Discussion on \"How a switch on strings decompiles in C#\". A switch over an int or an enum is one of the cleanest things in all of IL: the compiler emits a single switch instruction, a genuine jump table that reads an integer off the stack and branches to the"
url: "https://hashnode.com/posts/how-a-switch-on-strings-decompiles-in-c/6af3278703be0db40adfbb02"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How a switch on strings decompiles in C#](https://delta1labs.hashnode.dev/how-a-switch-on-strings-decompiles-in-c?utm_source=hashnode&utm_medium=feed)

A switch over an int or an enum is one of the cleanest things in all of IL: the compiler emits a single switch instruction, a genuine jump table that reads an integer off the stack and branches to the

Nov 10 · 10 min read · delta1labs.hashnode.dev  
Updated 3h ago  
Read the article

-   [#glassnet](https://hashnode.com/tag/glassnet)
-   [#decompilation](https://hashnode.com/tag/decompilation)
-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#deepdive](https://hashnode.com/tag/deepdive)

## Written by

[Zero Heartbeat](https://hashnode.com/@clustron)

@clustron

  
[View profile](https://hashnode.com/@clustron)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
