Class SepaBankInfos
Container that holds the bank informations for a particular country.
Inheritance
System.Object
SepaBankInfos
Implements
System.Collections.IEnumerable
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()
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 |
System.String |
sCountryCode |
The country for which this container holds the bank informations.
|
System.Collections.Generic.List<SepaBankInfo> |
vBankInfos |
|
Fields
Declaration
public const string CSVHEADER_BANKCODE = "BankCode"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string CSVHEADER_BANKNAME = "BankName"
Field Value
Type |
Description |
System.String |
|
Declaration
public const string CSVHEADER_BIC = "BIC"
Field Value
Type |
Description |
System.String |
|
Properties
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
CountryCode
Declaration
public string CountryCode { get; }
Property Value
Type |
Description |
System.String |
|
IBANSpec
Declaration
public SepaIBANSpec IBANSpec { get; }
Property Value
Item[Int32]
Declaration
public SepaBankInfo this[int i] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Property Value
Methods
DetermineBankName(String)
Declaration
public string DetermineBankName(string sBankCode)
Parameters
Type |
Name |
Description |
System.String |
sBankCode |
The bank code for which to determine the bank name. This must not be null
or an empty string.
|
Returns
Type |
Description |
System.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.
|
DetermineBIC(String)
Declaration
public SepaBIC DetermineBIC(string sBankCode)
Parameters
Type |
Name |
Description |
System.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.
|
FindBankInfo(String)
Declaration
public SepaBankInfo FindBankInfo(string sBankCode)
Parameters
Type |
Name |
Description |
System.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
Type |
Condition |
System.ArgumentNullException |
The parameter sBankCode was null .
|
System.ArgumentException |
|
LoadBankInfosCsv(String, Stream)
Declaration
public static SepaBankInfos LoadBankInfosCsv(string sCountryCode, Stream aStream)
Parameters
Type |
Name |
Description |
System.String |
sCountryCode |
|
System.IO.Stream |
aStream |
|
Returns
LoadBankInfosCsv(String, TextReader)
Declaration
public static SepaBankInfos LoadBankInfosCsv(string sCountryCode, TextReader aReader)
Parameters
Type |
Name |
Description |
System.String |
sCountryCode |
|
System.IO.TextReader |
aReader |
|
Returns
LoadBankInfosCsvFile(String, String)
Loads all bank informations from a given CSV file.
Declaration
public static SepaBankInfos LoadBankInfosCsvFile(string sCountryCode, string sFileName)
Parameters
Type |
Name |
Description |
System.String |
sCountryCode |
|
System.String |
sFileName |
|
Returns
Explicit Interface Implementations
IEnumerable<SepaBankInfo>.GetEnumerator()
Declaration
IEnumerator<SepaBankInfo> IEnumerable<SepaBankInfo>.GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<SepaBankInfo> |
|
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable