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