Search code examples
c#typesparametersdllimportextern

Call external dll import method using int / short instead of Int32 / Int16


I just wondered if it is safe to change the datatypes of a dll import method parameters from "Int32" to "int" or "Int16" to "short". I know that it should be the same compilerwise, but I'm insecure if the imported method is still recognized.

Thanks in advance

Regards


Solution

  • Yes, these types are interchangeable.