//int转IntPtr int i = 12;
IntPtr p = new IntPtr(i);
IntPtr p1 = (IntPtr)i;
//IntPtr转int int myi = (int)p;
MessageBox.Show(myi.ToString());
//int转IntPtr int i = 12;
IntPtr p = new IntPtr(i);
IntPtr p1 = (IntPtr)i;
//IntPtr转int int myi = (int)p;
MessageBox.Show(myi.ToString());
本文标题:intPtr int 之间的转化
本文链接:https://www.haomeiwen.com/subject/agdgpftx.html
网友评论