public static object Microsoft_Robotics_Services_GameController_Controller_TO_Microsoft_Robotics_Services_GameController_Proxy_Controller(object transformFrom) { global::Microsoft.Robotics.Services.GameController.Proxy.Controller target = new global::Microsoft.Robotics.Services.GameController.Proxy.Controller(); global::Microsoft.Robotics.Services.GameController.Controller from = ((global::Microsoft.Robotics.Services.GameController.Controller)(transformFrom)); target.TimeStamp = from.TimeStamp; target.Instance = from.Instance; target.Product = from.Product; target.InstanceName = from.InstanceName; target.ProductName = from.ProductName; target.Current = from.Current; return(target); }
public static object Microsoft_Robotics_Services_GameController_GetControllersResponse_TO_Microsoft_Robotics_Services_GameController_Proxy_GetControllersResponse(object transformFrom) { global::Microsoft.Robotics.Services.GameController.Proxy.GetControllersResponse target = new global::Microsoft.Robotics.Services.GameController.Proxy.GetControllersResponse(); global::Microsoft.Robotics.Services.GameController.GetControllersResponse from = ((global::Microsoft.Robotics.Services.GameController.GetControllersResponse)(transformFrom)); global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.GameController.Controller> tmp = from.Controllers; if ((tmp != null)) { int count = tmp.Count; global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.GameController.Proxy.Controller> tmp0 = new global::System.Collections.Generic.List <global::Microsoft.Robotics.Services.GameController.Proxy.Controller>(count); for (int index = 0; (index < count); index = (index + 1)) { global::Microsoft.Robotics.Services.GameController.Proxy.Controller tmp1 = default(global::Microsoft.Robotics.Services.GameController.Proxy.Controller); global::Microsoft.Robotics.Services.GameController.Controller tmp2 = tmp[index]; if ((tmp2 != null)) { tmp1 = ((global::Microsoft.Robotics.Services.GameController.Proxy.Controller)(Microsoft_Robotics_Services_GameController_Controller_TO_Microsoft_Robotics_Services_GameController_Proxy_Controller(tmp2))); } tmp0.Add(tmp1); } target.Controllers = tmp0; } return(target); }