Class SepaBankInfo
Inheritance
Implements
Inherited Members
Namespace: Subsembly.Sepa
Assembly: Subsembly.Sepa.dll
Syntax
public class SepaBankInfo : IComparable
Constructors
SepaBankInfo()
Declaration
public SepaBankInfo()
SepaBankInfo(String, String, SepaBIC, String)
Declaration
public SepaBankInfo(string sCountryCode, string sBankCode, SepaBIC tBIC, string sBankName)
Parameters
Type | Name | Description |
---|---|---|
System.String | sCountryCode | |
System.String | sBankCode | The bank code without padding. |
SepaBIC | tBIC | |
System.String | sBankName | Optional bank name, may be |
Properties
BankCode
The bank identification code of this entry.
Declaration
public string BankCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This is never null
or empty.
BankName
The optional bank name, may be null
if not known.
Declaration
public string BankName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
BIC
The BIC of this entry.
Declaration
public SepaBIC BIC { get; set; }
Property Value
Type | Description |
---|---|
SepaBIC |
Remarks
This value should never be IsNull.
CountryCode
The country code that of this entry.
Declaration
public string CountryCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This is never null
or empty.
Methods
Adopt(SepaBankInfo)
Adopts all properties of the given bank information to this bank information.
Declaration
public void Adopt(SepaBankInfo aBankInfo)
Parameters
Type | Name | Description |
---|---|---|
SepaBankInfo | aBankInfo | Another bank information that shall be incorporated into this bank information.
This must not be |
Remarks
Any non-null and non-empty properties of the other bank information will overwrite the current property values of this bank information.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The parameter |
System.ArgumentException | The CountryCode or BankCode of this and the given SepaBankInfo were not equal. |
GetAttribute(String)
Get an additional named attribute from this bank information record.
Declaration
public string GetAttribute(string sAttrName)
Parameters
Type | Name | Description |
---|---|---|
System.String | sAttrName | The name of the attribute. This must not be |
Returns
Type | Description |
---|---|
System.String | If the attribute exists, then its value is returned, which may be a |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The parameter |
System.ArgumentException | The |
SetAttribute(String, String)
Adds another attribute value to this bank information.
Declaration
public void SetAttribute(string sAttrName, string sAttrValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | sAttrName | The name of the attribute. This must not be |
System.String | sAttrValue | The attribute string value. If this is |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The parameter |
System.ArgumentException | The |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
Explicit Interface Implementations
IComparable.CompareTo(Object)
Declaration
int IComparable.CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Int32 |