TryToComplex(String,Complex) Method
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.
[System.Runtime.CompilerServices.Extension()]
public static System.bool TryToComplex(
System.string ,
out System.Numerics.Complex
)
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.
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)