Load() public method

Load an object from XML.
public Load ( ReadXML xmlIn, IEncogPersistedObject target ) : void
xmlIn Encog.Parse.Tags.Read.ReadXML The XML reader.
target IEncogPersistedObject The object to load.
return void
        /// <summary>
        /// Load from the specified node.
        /// </summary>
        /// <param name="xmlIn">The node to load from.</param>
        /// <returns>The EncogPersistedObject that was loaded.</returns>
        public IEncogPersistedObject Load(ReadXML xmlIn)
        {
            IEncogPersistedObject current;

            String c = ReflectionUtil.ResolveEncogClass(clazz.Name);
            current = (IEncogPersistedObject)Assembly.GetExecutingAssembly().CreateInstance(c);
            XML2Object conv = new XML2Object();
            conv.Load(xmlIn, current);
            return current;
        }
        /// <summary>
        /// Load from the specified node.
        /// </summary>
        /// <param name="xmlIn">The node to load from.</param>
        /// <returns>The EncogPersistedObject that was loaded.</returns>
        public IEncogPersistedObject Load(ReadXML xmlIn)
        {
            IEncogPersistedObject current;

            String c = ReflectionUtil.ResolveEncogClass(clazz.Name);

            current = (IEncogPersistedObject)Assembly.GetExecutingAssembly().CreateInstance(c);
            XML2Object conv = new XML2Object();

            conv.Load(xmlIn, current);
            return(current);
        }