I've seen some code marked with MethodImplOptions.InternalCall
From the documentation, it is said that such a method is a "method is implemented within the common language runtime itself".
I'd like to know what is the usage of marking a method as an Internal Call ?
Can't such a method be implemented in the .NET library itself? or as a native method that can be invoked using the standard techniques? (e.g: Pinvoke)
Another question question dealt with "why not implement the same as a CIL instruction": What's the point of MethodImplOptions.InternalCall?
which answered only why it's better off to not introduce new CIL instructions, but doesn't fully answer what i'm after.
Also, can internal implementations be created in non-CLR code? (e.g: native app that hosts the CLR?)