Encog.Util.XMLUtil.FindElementAsLong C# (CSharp) Method

FindElementAsLong() public static method

Find an element, return as a long.
public static FindElementAsLong ( XmlElement e, String find, long def ) : long
e System.Xml.XmlElement The element that searches.
find String What we are searching for.
def long The default value, if we fail to find it.
return long
        public static long FindElementAsLong(XmlElement e, String find,
                 long def)
        {
            String str = FindElementAsString(e, find);
            if (str == null)
            {
                return def;
            }

            return long.Parse(str);

        }