CopyTo Method
Microsoft Robotics Class Reference
Copy [DataMember] fields to target
Namespace: Microsoft.Dss.Core
Assembly: Microsoft.Dss.Base (in Microsoft.Dss.Base.dll) Version: 4.0.261.0 (4.0.261.0)
Syntax
void CopyTo(
IDssSerializable target
)
Parameters
- target
Type: Microsoft.Dss.Core. . :: . .IDssSerializable
Remarks
target must be inheritable from this type.
Examples
virtual void CopyTo(IDssSerializable target) { RealType typedTarget = target as RealType; if (typedTarget == null) throw new ArgumentException(string.Format("CopyTo({0}) requires type {0}", this.GetType().FullName)); typedTarget.Field1 = this.Field1; }