/// <summary> /// Clone this object. /// </summary> /// <returns>A cloned version of this object.</returns> public override object Clone() { TextData result = new TextData(); result.Name = this.Name; result.Description = this.Description; result.Text = this.Text; return result; }
/// <summary> /// Load the specified Encog object from an XML reader. /// </summary> /// <param name="xmlin">The XML reader to use.</param> /// <returns>The loaded object.</returns> public IEncogPersistedObject Load(ReadXML xmlin) { String name = xmlin.LastTag.GetAttributeValue("name"); String description = xmlin.LastTag.GetAttributeValue("description"); TextData result = new TextData(); xmlin.ReadToTag(); String text = xmlin.LastTag.Name; result.Name = name; result.Description = description; result.Text = text; xmlin.ReadToTag(); return result; }