public static object Microsoft_Robotics_Services_Sample_Lego_Nxt_Brick_Registration_TO_Microsoft_Robotics_Services_Sample_Lego_Nxt_Brick_Proxy_Registration(object transformFrom) { global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.Proxy.Registration target = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.Proxy.Registration(); global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.Registration from = ((global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.Registration)(transformFrom)); global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.LegoNxtConnection tmp = from.Connection; if ((tmp != null)) { global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.LegoNxtConnection tmp0 = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.LegoNxtConnection(); ((Microsoft.Dss.Core.IDssSerializable)(tmp)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp0))); target.Connection = tmp0; } target.DeviceType = from.DeviceType; target.DeviceModel = from.DeviceModel; target.DeviceContract = from.DeviceContract; target.ServiceUri = from.ServiceUri; target.Name = from.Name; target.SubscriberUri = from.SubscriberUri; target.I2CBusAddress = from.I2CBusAddress; return target; }
public static object Microsoft_Robotics_Services_Sample_Lego_Nxt_Brick_Proxy_AttachResponse_TO_Microsoft_Robotics_Services_Sample_Lego_Nxt_Brick_AttachResponse(object transformFrom) { global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.AttachResponse target = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.AttachResponse(); global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.Proxy.AttachResponse from = ((global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Brick.Proxy.AttachResponse)(transformFrom)); if ((from.Connection != null)) { global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.LegoNxtConnection tmp = new global::Microsoft.Robotics.Services.Sample.Lego.Nxt.Common.LegoNxtConnection(); ((Microsoft.Dss.Core.IDssSerializable)(from.Connection)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp))); target.Connection = tmp; } else { target.Connection = null; } target.DeviceModel = from.DeviceModel; return target; }