---
title: "Discussion on \"How the new C# lock decompiles\" | Hashnode"
description: "Discussion on \"How the new C# lock decompiles\". For two decades lock (obj) meant exactly one thing in IL: Monitor.Enter on the way in, a guarded Monitor.Exit in a finally on the way out, with a lockTaken flag threaded between them to make the acqui"
url: "https://hashnode.com/posts/how-the-new-c-lock-decompiles/6af32789f58ef4a7ea501aed"
---

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

Discussion

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

For two decades lock (obj) meant exactly one thing in IL: Monitor.Enter on the way in, a guarded Monitor.Exit in a finally on the way out, with a lockTaken flag threaded between them to make the acqui

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

-   [#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.
