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

TryToUInt64() static private méthode

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