Struct SwiftISIN
Wrapper for dealing with ISIN and WKN numbers.
Assembly: Subsembly.Sepa.dll
Syntax
Constructors
SwiftISIN(string)
Declaration
public SwiftISIN(string sISIN)
Parameters
Type |
Name |
Description |
string |
sISIN |
|
Exceptions
Fields
LENGTH
The required length of any ISIN.
Declaration
public const int LENGTH = 12
Field Value
NullISIN
Declaration
public static readonly SwiftISIN NullISIN
Field Value
Properties
CountryCode
Returns the country code from this ISIN.
Declaration
public string CountryCode { get; }
Property Value
GermanWKN
If this is a German ISIN, then the contained, six character German WKN number is
returned. For other ISINs, null
is returned.
Declaration
public string GermanWKN { get; }
Property Value
ISIN
Returns the wrapped ISIN or null
, if it is NullISIN,
or some other security identification that is not an ISIN.
Declaration
public string ISIN { get; }
Property Value
IsNull
Declaration
public bool IsNull { get; }
Property Value
Kind
Returns the wrapped kind of this ISIN.
Declaration
public SwiftISINKind Kind { get; }
Property Value
Methods
FromGermanWKN(string)
Declaration
public static SwiftISIN FromGermanWKN(string sWKN)
Parameters
Type |
Name |
Description |
string |
sWKN |
|
Returns
Exceptions
IsGermanWKN(string)
Declaration
public static bool IsGermanWKN(string sWKN)
Parameters
Type |
Name |
Description |
string |
sWKN |
A supposed German WKN. May be null .
|
Returns
Type |
Description |
bool |
Returns true if, and only if, the given sWKN is not
null , and consists of exactly six digits or upper case letters.
|
IsValid(string)
Declaration
public static bool IsValid(string sISIN)
Parameters
Type |
Name |
Description |
string |
sISIN |
|
Returns
Parse(string)
Parse text input from user or from MT files into a valid ISIN.
Declaration
public static SwiftISIN Parse(string sInput)
Parameters
Type |
Name |
Description |
string |
sInput |
The input to be parsed. If this is null , then the returned value will be
NullISIN.
|
Returns
Type |
Description |
SwiftISIN |
If the input cannot be parsed, then NullISIN is returned.
If the input was a valid ISIN, then it is returned.
|
ToString()
Declaration
public override string ToString()
Returns
Overrides