public static object Microsoft_Robotics_Services_Encoder_Proxy_EncoderState_TO_Microsoft_Robotics_Services_Encoder_Proxy_EncoderState0(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Encoder.Proxy.EncoderState target = new global::Microsoft.Robotics.Services.Encoder.Proxy.EncoderState();
     global::Microsoft.Robotics.Services.Encoder.EncoderState       from   = ((global::Microsoft.Robotics.Services.Encoder.EncoderState)(transformFrom));
     target.TimeStamp          = from.TimeStamp;
     target.TicksSinceReset    = from.TicksSinceReset;
     target.CurrentAngle       = from.CurrentAngle;
     target.CurrentReading     = from.CurrentReading;
     target.TicksPerRevolution = from.TicksPerRevolution;
     target.HardwareIdentifier = from.HardwareIdentifier;
     return(target);
 }
 public static object Microsoft_Robotics_Services_Motor_Proxy_WheeledMotorState_TO_Microsoft_Robotics_Services_Motor_Proxy_WheeledMotorState0(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Motor.Proxy.WheeledMotorState target = new global::Microsoft.Robotics.Services.Motor.Proxy.WheeledMotorState();
     global::Microsoft.Robotics.Services.Motor.WheeledMotorState       from   = ((global::Microsoft.Robotics.Services.Motor.WheeledMotorState)(transformFrom));
     target.WheelSpeed = from.WheelSpeed;
     target.Name       = from.Name;
     global::Microsoft.Robotics.Services.Motor.MotorState tmp = from.MotorState;
     if ((tmp != null))
     {
         target.MotorState = ((global::Microsoft.Robotics.Services.Motor.Proxy.MotorState)(Microsoft_Robotics_Services_Motor_Proxy_MotorState_TO_Microsoft_Robotics_Services_Motor_Proxy_MotorState0(tmp)));
     }
     target.Radius    = from.Radius;
     target.GearRatio = from.GearRatio;
     global::Microsoft.Robotics.Services.Encoder.EncoderState tmp0 = from.EncoderState;
     if ((tmp0 != null))
     {
         target.EncoderState = ((global::Microsoft.Robotics.Services.Encoder.Proxy.EncoderState)(Microsoft_Robotics_Services_Encoder_Proxy_EncoderState_TO_Microsoft_Robotics_Services_Encoder_Proxy_EncoderState0(tmp0)));
     }
     return(target);
 }