NevronOpenVision
Nevron.Nov.Numerics Namespace / ComplexExtensions Class / TryToComplex Method / TryToComplex(String,Complex) Method
A string containing a complex number to convert.
The parsed value.
In This Topic
    TryToComplex(String,Complex) Method
    In This Topic
    Converts the string representation of a complex number to a double-precision complex number equivalent. A return value indicates whether the conversion succeeded or failed.
    Syntax
    [System.Runtime.CompilerServices.Extension()]
    public static System.bool TryToComplex( 
       System.string value,
       out System.Numerics.Complex result
    )

    Parameters

    value
    A string containing a complex number to convert.
    result
    The parsed value.

    Return Value

    If the conversion succeeds, the result will contain a complex number equivalent to value. Otherwise the result will contain Complex.Zero. This parameter is passed uninitialized.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also