You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An incorrectly defined platform invoke method (marked with System.Runtime.InteropServices.DllImportAttribute) can lead to runtime exceptions because of issues such as a misnamed function, faulty mapping of parameter and return value data types, and incorrect field specifications. If available, it is a lot less error prone, not to mention more secure and quite simpler, to call the equivalent managed method.
The text was updated successfully, but these errors were encountered:
I would recommend to close this issue. I discussed it on runtime (see CA2205) and they said it's not worth porting it as it makes a lot less sense now that .NET is cross-platform.
RSPEC-4071
An incorrectly defined platform invoke method (marked with System.Runtime.InteropServices.DllImportAttribute) can lead to runtime exceptions because of issues such as a misnamed function, faulty mapping of parameter and return value data types, and incorrect field specifications. If available, it is a lot less error prone, not to mention more secure and quite simpler, to call the equivalent managed method.
The text was updated successfully, but these errors were encountered: