Class SepaBankInfos
Container that holds the bank informations for a particular country.
Inheritance
SepaBankInfos
Assembly: Subsembly.Sepa.dll
Syntax
public class SepaBankInfos : IEnumerable<SepaBankInfo>, IEnumerable
Constructors
SepaBankInfos(string, List<SepaBankInfo>)
Declaration
public SepaBankInfos(string sCountryCode, List<SepaBankInfo> vBankInfos)
Parameters
Type |
Name |
Description |
string |
sCountryCode |
The country for which this container holds the bank informations.
|
List<SepaBankInfo> |
vBankInfos |
|
Fields
Declaration
public const string CSVHEADER_BANKCODE = "BankCode"
Field Value
Declaration
public const string CSVHEADER_BANKNAME = "BankName"
Field Value
Declaration
public const string CSVHEADER_BIC = "BIC"
Field Value
Properties
Count
Declaration
public int Count { get; }
Property Value
CountryCode
Declaration
public string CountryCode { get; }
Property Value
IBANSpec
Declaration
public SepaIBANSpec IBANSpec { get; }
Property Value
this[int]
Declaration
public SepaBankInfo this[int i] { get; }
Parameters
Type |
Name |
Description |
int |
i |
|
Property Value
Methods
DetermineBIC(string)
Declaration
public SepaBIC DetermineBIC(string sBankCode)
Parameters
Type |
Name |
Description |
string |
sBankCode |
The bank code for which to determine the BIC. This must not be null or an
empty string.
|
Returns
Type |
Description |
SepaBIC |
If the bank code was found, then its BIC is returned. If the bank code is not known,
then NullBIC is returned.
|
DetermineBankName(string)
Declaration
public string DetermineBankName(string sBankCode)
Parameters
Type |
Name |
Description |
string |
sBankCode |
The bank code for which to determine the bank name. This must not be null
or an empty string.
|
Returns
Type |
Description |
string |
If the bank code was found, and a bank name is known for it, then it is returned.
If the bank code is not known, or no name for the bank is known, then null
is returned.
|
FindBankInfo(string)
Declaration
public SepaBankInfo FindBankInfo(string sBankCode)
Parameters
Type |
Name |
Description |
string |
sBankCode |
The bank identification code. Must not be null .
|
Returns
Type |
Description |
SepaBankInfo |
If the given bank code is not found in the table, then this method returns
null . If the bank code is contained, then its SepaBankInfo
is returned.
|
Exceptions
LoadBankInfosCsv(string, Stream)
Declaration
public static SepaBankInfos LoadBankInfosCsv(string sCountryCode, Stream aStream)
Parameters
Returns
LoadBankInfosCsv(string, TextReader)
Declaration
public static SepaBankInfos LoadBankInfosCsv(string sCountryCode, TextReader aReader)
Parameters
Returns
LoadBankInfosCsvFile(string, string)
Loads all bank informations from a given CSV file.
Declaration
public static SepaBankInfos LoadBankInfosCsvFile(string sCountryCode, string sFileName)
Parameters
Returns
Implements