ComplexExtensionsTryToComplex(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.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static bool TryToComplex(
this string value,
out Complex result
)
Parameters
- value String
-
A string containing a complex number to convert.
- result Complex
-
The parsed value.
Return Value
Boolean
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.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also