3 ms·
Actually, what Java had was J/Direct. P/Invoke was created specifically for C#.
by pie_flavor 5y ago
Actually, what Java had was J/Direct. P/Invoke was created specifically for C#.
- pjmlp 5y agoThey are the same thing, replace Java annotations with .NET attributes and call it something else due to the lawsuit. /** @dll.import("USER32", entrypoint="GetSysColor") */ static native int getSysColor(int nIndex); versus [DllImport("USER32", EntryPoint = "GetSysColor")] static extern int GetSysColor(int nIndex);