Where are the root method bodies in c#?

Viewed 53

Where are the root method bodies in c#? How can I see it? I'm interested in how it works from the inside, but when I choose any class or method(f12) -

I see only a declaration, where is the body? where is the body?

1 Answers

This is because when you load an assembly (even the core dlls) you only get the compiled version and not the source code.

If you did, the assembly would be much larger than that.

Fortunatelly, the .NET Core code is open source so you can find it on github.

You can find the declaration of the partial struct here.

Related