public static bool TryCreate(string ibanNumber, out IBAN result, out string failureReason) { var specification = new IBANSpecification(); if (specification.IsSatisfiedBy(ibanNumber)) { result = new IBAN(ibanNumber); failureReason = string.Empty; return true; } result = null; failureReason = specification.GetReasonsForDissatisfactionSeparatedWithNewLine(); return false; }
protected bool Equals(IBAN other) { return ibanNumber.Equals(other.ibanNumber); }