Class SepaSwissIBAN
Inheritance
System.Object
SepaSwissIBAN
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Subsembly.Sepa
Assembly: Subsembly.Sepa.dll
Syntax
public static class SepaSwissIBAN
Methods
GetAcctNo(String)
Extract the domestic swiss account number part from an IBAN.
Declaration
public static string GetAcctNo(string sIBAN)
Parameters
Type | Name | Description |
---|---|---|
System.String | sIBAN |
Returns
Type | Description |
---|---|
System.String | The swiss account number for a valid swiss IBAN or |
GetBankCode(String)
Extract the swiss bank clearing code from an IBAN.
Declaration
public static string GetBankCode(string sIBAN)
Parameters
Type | Name | Description |
---|---|---|
System.String | sIBAN |
Returns
Type | Description |
---|---|
System.String | The swiss bank clearing code for a valid swiss IBAN or |
IsValid(String)
Checks whether the given IBAN looks like a valid Swiss IBAN number.
Declaration
public static bool IsValid(string sIBAN)
Parameters
Type | Name | Description |
---|---|---|
System.String | sIBAN | The IBAN to check. If this is |
Returns
Type | Description |
---|---|
System.Boolean |
Remarks
This does not check whether the bank account really exists. It solely checks whether the IBAN specification is a syntactically correct Swiss IBAN specification.
See Also
IsValidAcctNoESR(String)
Declaration
public static bool IsValidAcctNoESR(string sAcctNo)
Parameters
Type | Name | Description |
---|---|---|
System.String | sAcctNo |
Returns
Type | Description |
---|---|
System.Boolean |
IsValidAcctNoPost(String)
Declaration
public static bool IsValidAcctNoPost(string sAcctNo)
Parameters
Type | Name | Description |
---|---|---|
System.String | sAcctNo |
Returns
Type | Description |
---|---|
System.Boolean |
IsValidRefNoESR(String)
Declaration
public static bool IsValidRefNoESR(string sRefNo)
Parameters
Type | Name | Description |
---|---|---|
System.String | sRefNo |
Returns
Type | Description |
---|---|
System.Boolean |