---
title: "Discussion on \"How a yield return iterator decompiles\" | Hashnode"
description: "Discussion on \"How a yield return iterator decompiles\". Write a three-line method that returns IEnumerable<int> and uses yield return, compile it, and open the assembly. Your method is gone. In its place sits a compiler-generated class with a name like <Wi"
url: "https://hashnode.com/posts/how-a-yield-return-iterator-decompiles/6b0c14cafb561b41123252dc"
---

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

Discussion

# [How a yield return iterator decompiles](https://delta1labs.hashnode.dev/how-a-yield-return-iterator-decompiles?utm_source=hashnode&utm_medium=feed)

Write a three-line method that returns IEnumerable<int> and uses yield return, compile it, and open the assembly. Your method is gone. In its place sits a compiler-generated class with a name like <Wi

13h ago · 11 min read · delta1labs.hashnode.dev  
Read the article

-   [#glass](https://hashnode.com/tag/glass)
-   [#decompilation](https://hashnode.com/tag/decompilation)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#il](https://hashnode.com/tag/il)

## Written by

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

@clustron

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
