public static object Microsoft_Robotics_Services_SerialComService_SendPacketRequest_TO_Microsoft_Robotics_Services_SerialComService_Proxy_SendPacketRequest(object transformFrom)
 {
     global::Microsoft.Robotics.Services.SerialComService.Proxy.SendPacketRequest target = new global::Microsoft.Robotics.Services.SerialComService.Proxy.SendPacketRequest();
     global::Microsoft.Robotics.Services.SerialComService.SendPacketRequest       from   = ((global::Microsoft.Robotics.Services.SerialComService.SendPacketRequest)(transformFrom));
     global::Microsoft.Robotics.Services.SerialComService.Packet tmp = from.Data;
     if ((tmp != null))
     {
         target.Data = ((global::Microsoft.Robotics.Services.SerialComService.Proxy.Packet)(Microsoft_Robotics_Services_SerialComService_Packet_TO_Microsoft_Robotics_Services_SerialComService_Proxy_Packet(tmp)));
     }
     return(target);
 }
 public static object Microsoft_Robotics_Services_SerialComService_Packet_TO_Microsoft_Robotics_Services_SerialComService_Proxy_Packet(object transformFrom)
 {
     global::Microsoft.Robotics.Services.SerialComService.Proxy.Packet target = new global::Microsoft.Robotics.Services.SerialComService.Proxy.Packet();
     global::Microsoft.Robotics.Services.SerialComService.Packet       from   = ((global::Microsoft.Robotics.Services.SerialComService.Packet)(transformFrom));
     byte[] tmp = from.Message;
     if ((tmp != null))
     {
         int    count = tmp.Length;
         byte[] tmp0  = new byte[count];
         global::System.Buffer.BlockCopy(tmp, 0, tmp0, 0, global::System.Buffer.ByteLength(tmp));
         target.Message = tmp0;
     }
     return(target);
 }