public static bool TryParse(string s, IFormatProvider provider, out AccountNumber result) { return TryParse(s, out result); }
/// <summary> /// Tries to parse the supplied string into the supplied <see cref="AccountNumber"/> object. /// </summary> /// <param name="s">The string to parse.</param> /// <param name="result">The <see cref="AccountNumber"/> object.</param> /// <returns>True if the parsing is successful, false otherwise.</returns> public static bool TryParse(string s, out AccountNumber result) { if (string.IsNullOrEmpty(s)) { result = Empty; return true; } if (!IsValidAccountNumber(s)) { result = Empty; return false; } result = new AccountNumber(s); return true; }