/// <summary> /// Converts the string representation of a complex number to single-precision complex number equivalent. /// A return value indicates whether the conversion succeeded or failed. /// </summary> /// <param name="value"> /// A string containing a complex number to convert. /// </param> /// <param name="formatProvider"> /// An <see cref="IFormatProvider"/> that supplies culture-specific formatting information about value. /// </param> /// <param name="result"> /// The parsed value. /// </param> /// <returns> /// 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. /// </returns> public static bool TryToComplex32(this string value, IFormatProvider formatProvider, out Complex32 result) { return(Complex32.TryParse(value, formatProvider, out result)); }
/// <summary> /// Converts the string representation of a complex number to a single-precision complex number equivalent. /// A return value indicates whether the conversion succeeded or failed. /// </summary> /// <param name="value"> /// A string containing a complex number to convert. /// </param> /// <param name="result"> /// The parsed value. /// </param> /// <returns> /// If the conversion succeeds, the result will contain a complex number equivalent to value. /// Otherwise the result will contain complex32.Zero. This parameter is passed uninitialized. /// </returns> public static bool TryToComplex32(this string value, out Complex32 result) { return(Complex32.TryParse(value, out result)); }