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

TryToUInt32() static private méthode

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