CLR interop: Passing Int16 values to managed code.
As you all know, Dynamics AX supports 32 bit integers in its int datatype. However, sometimes you need to transfer an int16 value to a managed method. Currently the easiest way to acheive this is by doing:
static void Job2(Args _args)
{
System.Int16 short;
int num = 2356;
;
short = System.Convert::ToInt16(num);
print short;
pause;
}