SaveModified() public method

Modify the properties of this object.
public SaveModified ( WriteXML xmlOut, String targetName, String newName, String newDesc ) : void
xmlOut Encog.Parse.Tags.Write.WriteXML The XML writer.
targetName String The name of the object to change.
newName String The new name of this object.
newDesc String The new description of this object.
return void
示例#1
0
        /// <summary>
        /// Modify the specified object, such as changing its name or
        /// description.
        /// </summary>
        /// <param name="location">The location of the object being modified.</param>
        /// <param name="name">The old name of the object being modified.</param>
        /// <param name="newName">The new name of the object being modified.</param>
        /// <param name="newDesc">The new description of the object being modified.</param>
        public void ModifyObject(IPersistenceLocation location,
                                 String name, String newName, String newDesc)
        {
            PersistReader reader = new PersistReader(location);

            reader.SaveModified(this.xmlOut, name, newName, newDesc);
            reader.Close();
        }
        /// <summary>
        /// Modify the specified object, such as changing its name or
        /// description.
        /// </summary>
        /// <param name="location">The location of the object being modified.</param>
        /// <param name="name">The old name of the object being modified.</param>
        /// <param name="newName">The new name of the object being modified.</param>
        /// <param name="newDesc">The new description of the object being modified.</param>
        public void ModifyObject(IPersistenceLocation location,
                 String name, String newName, String newDesc)
        {

            PersistReader reader = new PersistReader(location);
            reader.SaveModified(this.xmlOut, name, newName, newDesc);
            reader.Close();

        }