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;
 }
 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);
 }