SharpCifs.Config.GetLong C# (CSharp) Method

GetLong() public static method

Retrieve a long.
Retrieve a long. If the key does not exist or cannot be converted to a long, the provided default argument will be returned.
public static GetLong ( string key, long def ) : long
key string
def long
return long
        public static long GetLong(string key, long def)
        {
            string s = (string)_prp.GetProperty(key);
            if (s != null)
            {
                try
                {
                    def = long.Parse(s);
                }
                catch (FormatException nfe)
                {
                    if (_log.Level > 0)
                    {
                        Runtime.PrintStackTrace(nfe, _log);
                    }
                }
            }
            return def;
        }