Can PInvoke (platform invoke) methods be obfuscated?
Yes, this is possible if the PInvoke method is completely described. For example in case of this code: [DllImport(“Gdi32.dll”)] internal static extern int CombineRgn(IntPtr dest, IntPtr src1, IntPtr src2, int flags); The method will not be obfuscated. If the method is completely described (so that the name of method is present in the EntryPoint declaration of the DllImport): [DllImport(“Gdi32.dll”, EntryPoint = “CombineRgn”, CharSet=CharSet.