public object MarshalNativeToManaged(IntPtr pNativeData) { // Here, we call C++/CLI code FrameOfData frame = Marshaler.MarshalFrame(pNativeData); return(frame); }