public static object Microsoft_Robotics_Services_Sample_Lego_Nxt_Comm_SendCommandRequest_TO_Microsoft_Robotics_Services_Sample_Lego_Nxt_Comm_Proxy_SendCommandRequest(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.Proxy.SendCommandRequest target = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.Proxy.SendCommandRequest();
     global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.SendCommandRequest from = ((global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Comm.SendCommandRequest)(transformFrom));
     global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Commands.LegoCommand tmp = from.LegoCommand;
     if ((tmp != null)) {
         global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Commands.LegoCommand tmp0 = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Commands.LegoCommand();
         ((Microsoft.Dss.Core.IDssSerializable)(tmp)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp0)));
         target.LegoCommand = tmp0;
     }
     target.PriorityRequest = from.PriorityRequest;
     return target;
 }
 public static object Microsoft_Robotics_Services_Sample_Lego_Nxt_Brick_Proxy_LegoResponseException_TO_Microsoft_Robotics_Services_Sample_Lego_Nxt_Brick_LegoResponseException(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.LegoResponseException target = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.LegoResponseException();
     global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.Proxy.LegoResponseException from = ((global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.Proxy.LegoResponseException)(transformFrom));
     if ((from.OriginalCommand != null)) {
         global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Commands.LegoCommand tmp = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Commands.LegoCommand();
         ((Microsoft.Dss.Core.IDssSerializable)(from.OriginalCommand)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp)));
         target.OriginalCommand = tmp;
     }
     else {
         target.OriginalCommand = null;
     }
     target.ErrorMessage = from.ErrorMessage;
     return target;
 }