예제 #1
0
 protected object RawDeserialize(Type objectType, ref byte[] buffer)
 {
     using (GCSafeHandle handle = new GCSafeHandle(buffer))
     {
         return(handle.RawDeserialize(objectType));
     }
 }
예제 #2
0
 protected void RawSerialize(object serializable, ref byte[] rawdataHolder)
 {
     using (GCSafeHandle handle = new GCSafeHandle(rawdataHolder))
     {
         handle.RawSerialize(serializable);
     }
 }