---
title: "Discussion on \"How foreach decompiles back to C#\" | Hashnode"
description: "Discussion on \"How foreach decompiles back to C#\". foreach is one of the first things a C# programmer learns and one of the more elaborate things the compiler does. There is no foreach opcode, no loop instruction, nothing in the IL that says \"this was"
url: "https://hashnode.com/posts/how-foreach-decompiles-back-to-c/6af32763f41938b63788c8e1"
---

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

Discussion

# [How foreach decompiles back to C#](https://delta1labs.hashnode.dev/how-foreach-decompiles-back-to-c?utm_source=hashnode&utm_medium=feed)

foreach is one of the first things a C# programmer learns and one of the more elaborate things the compiler does. There is no foreach opcode, no loop instruction, nothing in the IL that says "this was

Nov 10 · 9 min read · delta1labs.hashnode.dev  
Updated 1h 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.
