---
title: "Discussion on \"Obfuscating source-generated code: why System.Text.Json contexts, [GeneratedRegex] and [LoggerMessage] survive renaming — and the one name they leak\" | Hashnode"
description: "Discussion on \"Obfuscating source-generated code: why System.Text.Json contexts, [GeneratedRegex] and [LoggerMessage] survive renaming — and the one name they leak\". A source generator is a compiler plugin that reads your code and emits more code into the same compilation. By the time the C# compiler finishes, the generated files are just part of your assembly — s"
url: "https://hashnode.com/posts/obfuscating-source-generated-code-why-systemtextjson-contexts-generatedregex-and-loggermessage-survi/6af32885ef86d93b24221019"
---

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

Discussion

# [Obfuscating source-generated code: why System.Text.Json contexts, \[GeneratedRegex\] and \[LoggerMessage\] survive renaming — and the one name they leak](https://delta1labs.hashnode.dev/obfuscating-source-generated-code-why-systemtextjson-contexts-generatedregex-and-loggermessage-survi?utm_source=hashnode&utm_medium=feed)

A source generator is a compiler plugin that reads your code and emits more code into the same compilation. By the time the C# compiler finishes, the generated files are just part of your assembly — s

1d ago · 9 min read · delta1labs.hashnode.dev  
Updated 1h ago  
Read the article

-   [#nebulanet](https://hashnode.com/tag/nebulanet)
-   [#obfuscation](https://hashnode.com/tag/obfuscation)
-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#sourcegenerators](https://hashnode.com/tag/sourcegenerators)

## Written by

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

@clustron

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
