示例#1
0
 public IntWrapper ToManaged() => managed = new IntWrapper()
 {
     i = *native
 };
示例#2
0
 public IntWrapperMarshaler(IntWrapper managed)
 {
     Value = (int *)Marshal.AllocCoTaskMem(sizeof(int));
     *Value = managed.i;
 }
示例#3
0
 public void FromManaged(IntWrapper wrapper)
 {
     managed = wrapper;
 }