Complex Explicit Conversion (BigInteger to Complex)
Defines an explicit conversion of a BigInteger value to a complex number.
Assembly: System.Numerics (in System.Numerics.dll)
Explicit conversion operators define types that can be converted to a Complex object. Language compilers do not perform this conversion automatically because it can involve data loss. Instead, they perform the conversion only if a casting operator (in C#) or a conversion function (such as CType in Visual Basic) is used. Otherwise, they display a compiler error.
The conversion of a BigInteger value to the real part of a complex number can result in a loss of precision because a Double, which is the type of the complex number's Real property, has fewer significant digits than a BigInteger.
If the conversion is unsuccessful because the BigInteger value is out of the range of the Double type, the operation does not throw an OverflowException. Instead, if value is less than Double::MinValue, the result is a complex number that has a Real property value equal to Double::NegativeInfinity. If value is greater than Double::MaxValue, the result is a complex number that has a Real property value equal to Double::PositiveInfinity.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.