C# Complex Implicit(SByte to Complex)
Description
Complex Implicit(SByte to Complex)
Defines an implicit
conversion of a signed byte to a complex number.
Syntax
Complex.Implicit(SByte to Complex)
has the following syntax.
public static implicit operator Complex (
sbyte value
)
Parameters
Complex.Implicit(SByte to Complex)
has the following parameters.
value
- The value to convert to a complex number.
Returns
Complex.Implicit(SByte 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
/* w ww . ja va2 s . c o m*/
using System;
using System.Numerics;
public class Example
{
public static void Main()
{
sbyte sbyteValue = -12;
System.Numerics.Complex c1 = sbyteValue;
Console.WriteLine(c1);
}
}
The code above generates the following result.