Red Gate .NET ReflectorI wanted to call a hash function from a .net executable from my code. My first step was to inspect the executable with Reflector.

The Hash function was in a namespace called Core:

Notice that the Core namespace is marked as internal so it was not meant to be callable outside of the executable. It’s still possible to call it using Reflection:

This works nicely! However if the function you want to call is overloaded (eg if there would also be a Hash function accepting 3 parameters) then you need to specify which overload you want:

Now that was easy, wasn’t it?