C# Complex Implicit(Byte to Complex)

Description

Complex Implicit(Byte to Complex) Defines an implicit conversion of an unsigned byte to a complex number.

Syntax

Complex.Implicit(Byte to Complex) has the following syntax.


public static implicit operator Complex (
  byte value
)

Parameters

Complex.Implicit(Byte to Complex) has the following parameters.

  • value - The value to convert to a complex number.

Returns

Complex.Implicit(Byte to Complex) method returns An object that contains the value of the value parameter as its real part and zero as its imaginary part.

Example


using System;/*from  www .j  ava2 s. c  om*/
using System.Numerics;

public class Example
{
   public static void Main()
   {
        byte byteValue = 122;
        System.Numerics.Complex c1 = byteValue;
        Console.WriteLine(c1);

   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex