Reputation: 95
I was stepping through some code and hit a method I wanted to see the code for. I clicked on 'go to definition' and it would usually take me to the method definition, but now it takes me to what appears to be an auto generated [from metadata] class. I've never experienced this before. What's going on and how do I get the old functionality back?
If it helps, the method is being called in a code behind file and the method definition is in the code behind of a UserControl.
Upvotes: 1
Views: 1241
Reputation: 11
It depends if you set the reference from a dll file or project.
Using dll files only allows you to go to the method's signature. "[from metadata]" shows you that you are looking into a precompiled file. In the other hand, when you add a project reference, the IDE can get the actual file's location and open it.
Upvotes: 0
Reputation: 38503
Because the assembly is compiled. You will see this when stepping into a MS assembly. You can use .NET reflector, it is free, to inspect the code.
Upvotes: 1