-> -----Original Message----- -> From: Discussion of the Rotor Shared Source CLI implementation -> -> The extern keyword is simply saying to the C# compiler that the -> implementation of the method will be provided by somebody else. The most -> common usage of the extern keyword is in the pinvoke declarations like:
Care to explain that a bit more? Is there any way for someone reading the code to figure out who "somebody else" is when there is no DllImport attribute? -> In this case and the case you have mentioned the CLR synthesizes the -> method implementation based on the attributes. How does "[MethodImplAttribute(MethodImplOptions.InternalCall)]" tell the CLR how to synthesize the method implementation? Many thanks, Ryan