Struct SwiftISIN
Wrapper for dealing with ISIN and WKN numbers.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Subsembly.Sepa.dll
Syntax
Constructors
SwiftISIN(String)
Declaration
public SwiftISIN(string sISIN)
Parameters
Type |
Name |
Description |
System.String |
sISIN |
|
Exceptions
Type |
Condition |
System.ArgumentNullException |
The parameter sISIN was null .
|
System.ArgumentException |
The parameter sISIN was not a valid ISIN according to the method
IsValid(String).
|
Fields
LENGTH
The required length of any ISIN.
Declaration
public const int LENGTH = 12
Field Value
Type |
Description |
System.Int32 |
|
NullISIN
Declaration
public static readonly SwiftISIN NullISIN
Field Value
Properties
CountryCode
Returns the country code from this ISIN.
Declaration
public readonly string CountryCode { get; }
Property Value
Type |
Description |
System.String |
|
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 readonly string GermanWKN { get; }
Property Value
Type |
Description |
System.String |
|
ISIN
Returns the wrapped ISIN or null
, if it is NullISIN,
or some other security identification that is not an ISIN.
Declaration
public readonly string ISIN { get; }
Property Value
Type |
Description |
System.String |
|
IsNull
Declaration
public readonly bool IsNull { get; }
Property Value
Type |
Description |
System.Boolean |
|
Kind
Returns the wrapped kind of this ISIN.
Declaration
public readonly SwiftISINKind Kind { get; }
Property Value
Methods
FromGermanWKN(String)
Declaration
public static SwiftISIN FromGermanWKN(string sWKN)
Parameters
Type |
Name |
Description |
System.String |
sWKN |
|
Returns
Exceptions
Type |
Condition |
System.ArgumentNullException |
|
System.ArgumentException |
|
IsGermanWKN(String)
Declaration
public static bool IsGermanWKN(string sWKN)
Parameters
Type |
Name |
Description |
System.String |
sWKN |
A supposed German WKN. May be null .
|
Returns
Type |
Description |
System.Boolean |
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 |
System.String |
sISIN |
|
Returns
Type |
Description |
System.Boolean |
|
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 |
System.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
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()