コード例 #1
0
 /// <summary>
 ///Clones ReferencePlatform2011State
 ///</summary>
 ///<returns>cloned value</returns>
 public virtual object Clone()
 {
     global::Microsoft.Robotics.Services.Simulation.ReferencePlatform2011.Proxy.ReferencePlatform2011State target0 = new global::Microsoft.Robotics.Services.Simulation.ReferencePlatform2011.Proxy.ReferencePlatform2011State();
     this.CopyTo(target0);
     return(target0);
 }
コード例 #2
0
 /// <summary>
 ///Copies the data member values of the current ReferencePlatform2011State to the specified target object
 ///</summary>
 ///<param name="target">target object (must be an instance of)</param>
 public virtual void CopyTo(Microsoft.Dss.Core.IDssSerializable target)
 {
     global::Microsoft.Robotics.Services.Simulation.ReferencePlatform2011.Proxy.ReferencePlatform2011State typedTarget = ((global::Microsoft.Robotics.Services.Simulation.ReferencePlatform2011.Proxy.ReferencePlatform2011State)(target));
     typedTarget._InitialPosition = this._InitialPosition;
     typedTarget._EntityName      = this._EntityName;
     if ((this._DriveState != null))
     {
         global::Microsoft.Robotics.Services.Drive.Proxy.DriveDifferentialTwoWheelState tmp = new global::Microsoft.Robotics.Services.Drive.Proxy.DriveDifferentialTwoWheelState();
         ((Microsoft.Dss.Core.IDssSerializable)(this._DriveState)).CopyTo(((Microsoft.Dss.Core.IDssSerializable)(tmp)));
         typedTarget._DriveState = tmp;
     }
 }