---
title: "Discussion on \"Reading top-level statements in decompiled C#: the synthesized Program class and the Main entry point\" | Hashnode"
description: "Discussion on \"Reading top-level statements in decompiled C#: the synthesized Program class and the Main entry point\". A C# file that uses top-level statements looks like it has no class and no Main — you just write statements and the program runs. But an assembly has to have an entry point, and the metadata has to na"
url: "https://hashnode.com/posts/reading-top-level-statements-in-decompiled-c-the-synthesized-program-class-and-the-main-entry-point/6af57a03daa48e398b51db5a"
---

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

Discussion

# [Reading top-level statements in decompiled C#: the synthesized Program class and the Main entry point](https://delta1labs.hashnode.dev/reading-top-level-statements-in-decompiled-c-the-synthesized-program-class-and-the-main-entry-point?utm_source=hashnode&utm_medium=feed)

A C# file that uses top-level statements looks like it has no class and no Main — you just write statements and the program runs. But an assembly has to have an entry point, and the metadata has to na

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

-   [#decompilation](https://hashnode.com/tag/decompilation)
-   [#glassnet](https://hashnode.com/tag/glassnet)
-   [#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.
