public static object Microsoft_Robotics_Services_Sample_HiTechnic_Accelerometer_Proxy_AccelerometerState_TO_Microsoft_Robotics_Services_Sample_HiTechnic_Accelerometer_AccelerometerState(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.HiTechnic.Accelerometer.AccelerometerState target = new global::Microsoft.Robotics.Services.Sample.HiTechnic.Accelerometer.AccelerometerState();
     global::Microsoft.Robotics.Services.Sample.HiTechnic.Accelerometer.Proxy.AccelerometerState from = ((global::Microsoft.Robotics.Services.Sample.HiTechnic.Accelerometer.Proxy.AccelerometerState)(transformFrom));
     target.Connected = from.Connected;
     target.Name = from.Name;
     target.SensorPort = from.SensorPort;
     target.PollingFrequencyMs = from.PollingFrequencyMs;
     if ((from.ZeroOffset != null)) {
         global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.AccelerometerReading tmp = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.AccelerometerReading();
         ((Microsoft.Dss.Core.IDssSerializable)(from.ZeroOffset)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp)));
         target.ZeroOffset = tmp;
     }
     else {
         target.ZeroOffset = null;
     }
     if ((from.Tilt != null)) {
         global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.AccelerometerReading tmp0 = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.AccelerometerReading();
         ((Microsoft.Dss.Core.IDssSerializable)(from.Tilt)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp0)));
         target.Tilt = tmp0;
     }
     else {
         target.Tilt = null;
     }
     return target;
 }
 public static object Microsoft_Robotics_Services_Sample_HiTechnic_Accelerometer_AccelerometerState_TO_Microsoft_Robotics_Services_Sample_HiTechnic_Accelerometer_Proxy_AccelerometerState(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Sample.HiTechnic.Accelerometer.Proxy.AccelerometerState target = new global::Microsoft.Robotics.Services.Sample.HiTechnic.Accelerometer.Proxy.AccelerometerState();
     global::Microsoft.Robotics.Services.Sample.HiTechnic.Accelerometer.AccelerometerState       from   = ((global::Microsoft.Robotics.Services.Sample.HiTechnic.Accelerometer.AccelerometerState)(transformFrom));
     target.Connected          = from.Connected;
     target.Name               = from.Name;
     target.SensorPort         = from.SensorPort;
     target.PollingFrequencyMs = from.PollingFrequencyMs;
     global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.AccelerometerReading tmp = from.ZeroOffset;
     if ((tmp != null))
     {
         global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.AccelerometerReading tmp0 = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.AccelerometerReading();
         ((Microsoft.Dss.Core.IDssSerializable)(tmp)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp0)));
         target.ZeroOffset = tmp0;
     }
     global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.AccelerometerReading tmp1 = from.Tilt;
     if ((tmp1 != null))
     {
         global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.AccelerometerReading tmp2 = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.AccelerometerReading();
         ((Microsoft.Dss.Core.IDssSerializable)(tmp1)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp2)));
         target.Tilt = tmp2;
     }
     return(target);
 }