• API Overview
  • EBICS API
  • FinTS API
  • XS2A API
  • SEPA API
Search Results for

    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)
    Namespace: Subsembly.Swift
    Assembly: Subsembly.Sepa.dll
    Syntax
    public struct SwiftISIN

    Constructors

    SwiftISIN(String)

    Creates a SwiftISIN from a real ISIN.

    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
    Type Description
    SwiftISIN

    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
    Remarks

    As a special case, if this struct holds an German WKN, that is, whenever Kind is National, and CountryCode is "DE", then an attempt is made to generate and return an ISIN for it.

    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
    Type Description
    SwiftISINKind

    Methods

    FromGermanWKN(String)

    Declaration
    public static SwiftISIN FromGermanWKN(string sWKN)
    Parameters
    Type Name Description
    System.String sWKN
    Returns
    Type Description
    SwiftISIN
    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.

    Remarks

    This method does not throw any exceptions, regardless of its input.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()
    In This Article
    Back to top Copyright 2009-2025 Subsembly GmbH