public static object Microsoft_Robotics_Services_InfraredSensorArray_Proxy_InfraredSensorArrayState_TO_Microsoft_Robotics_Services_InfraredSensorArray_Proxy_InfraredSensorArrayState(object transformFrom)
 {
     global::Microsoft.Robotics.Services.InfraredSensorArray.InfraredSensorArrayState       target = new global::Microsoft.Robotics.Services.InfraredSensorArray.InfraredSensorArrayState();
     global::Microsoft.Robotics.Services.InfraredSensorArray.Proxy.InfraredSensorArrayState from   = ((global::Microsoft.Robotics.Services.InfraredSensorArray.Proxy.InfraredSensorArrayState)(transformFrom));
     if ((from.Sensors != null))
     {
         int count = from.Sensors.Count;
         global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Infrared.InfraredState> tmp = new global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.Infrared.InfraredState>(count);
         for (int index = 0; (index < count); index = (index + 1))
         {
             global::Microsoft.Robotics.Services.Infrared.InfraredState tmp0 = default(global::Microsoft.Robotics.Services.Infrared.InfraredState);
             if ((from.Sensors[index] != null))
             {
                 tmp0 = ((global::Microsoft.Robotics.Services.Infrared.InfraredState)(Microsoft_Robotics_Services_Infrared_Proxy_InfraredState_TO_Microsoft_Robotics_Services_Infrared_Proxy_InfraredState(from.Sensors[index])));
             }
             else
             {
                 tmp0 = null;
             }
             tmp.Add(tmp0);
         }
         target.Sensors = tmp;
     }
     else
     {
         target.Sensors = null;
     }
     return(target);
 }
 public static object Microsoft_Robotics_Services_Infrared_Proxy_InfraredState_TO_Microsoft_Robotics_Services_Infrared_Proxy_InfraredState(object transformFrom)
 {
     global::Microsoft.Robotics.Services.Infrared.InfraredState       target = new global::Microsoft.Robotics.Services.Infrared.InfraredState();
     global::Microsoft.Robotics.Services.Infrared.Proxy.InfraredState from   = ((global::Microsoft.Robotics.Services.Infrared.Proxy.InfraredState)(transformFrom));
     target.TimeStamp              = from.TimeStamp;
     target.HardwareIdentifier     = from.HardwareIdentifier;
     target.ManufacturerIdentifier = from.ManufacturerIdentifier;
     target.MinDistance            = from.MinDistance;
     target.MaxDistance            = from.MaxDistance;
     target.DistanceMeasurement    = from.DistanceMeasurement;
     target.Pose = ((global::Microsoft.Robotics.PhysicalModel.Pose)(Microsoft_Robotics_PhysicalModel_Proxy_Pose_TO_Microsoft_Robotics_PhysicalModel_Proxy_Pose(from.Pose)));
     return(target);
 }