I was investigating some framework code (the System.AppDomain.GetDynamicDir method) and this was all the assembler showed:
[MethodImpl(MethodImplOptions.InternalCall)]
private extern string GetDynamicDir();
What happens when this method is called? I don’t mean this specific method, but methods with this attribute in general.
From MSDN:
So basically, the CLR provides its own implementation of this method (which is probably in native code), which is why you can’t see it in the disassembler.