System.Xml.XmlConvert.TryToInt64 C# (CSharp) Méthode

TryToInt64() static private méthode

static private TryToInt64 ( string s, System.Int64 &result ) : Exception
s string
result System.Int64
Résultat System.Exception
        internal static Exception TryToInt64(string s, out Int64 result)
        {
            if (!Int64.TryParse(s, NumberStyles.AllowLeadingSign | NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result))
            {
                return new FormatException(SR.Format(SR.XmlConvert_BadFormat, s, "Int64"));
            }
            return null;
        }