Complex.Implicit Operator

Definition

Definierar en implicit konvertering mellan ett Complex objekt och en annan typ.

Överlagringar

Name Description
Implicit(SByte to Complex)

Definierar en implicit konvertering av en signerad byte till ett komplext tal.

Detta API uppfyller inte CLS.

Implicit(UIntPtr to Complex)

Konverterar implicit ett UIntPtr värde till ett komplext tal med dubbel precision.

Implicit(UInt64 to Complex)

Definierar en implicit konvertering av ett 64-bitars osignerat heltal till ett komplext tal.

Detta API uppfyller inte CLS.

Implicit(UInt32 to Complex)

Definierar en implicit konvertering av ett 32-bitars osignerat heltal till ett komplext tal.

Detta API uppfyller inte CLS.

Implicit(UInt16 to Complex)

Definierar en implicit konvertering av ett 16-bitars osignerat heltal till ett komplext tal.

Detta API uppfyller inte CLS.

Implicit(Single to Complex)

Definierar en implicit konvertering av ett flyttal med enkel precision till ett komplext tal.

Implicit(BFloat16 to Complex)
Implicit(Int32 to Complex)

Definierar en implicit konvertering av ett 32-bitars signerat heltal till ett komplext tal.

Implicit(Int64 to Complex)

Definierar en implicit konvertering av ett 64-bitars signerat heltal till ett komplext tal.

Implicit(IntPtr to Complex)

Konverterar implicit ett IntPtr värde till ett komplext tal med dubbel precision.

Implicit(Int16 to Complex)

Definierar en implicit konvertering av ett 16-bitars signerat heltal till ett komplext tal.

Implicit(Half to Complex)

Konverterar implicit ett Half värde till ett komplext tal med dubbel precision.

Implicit(Double to Complex)

Definierar en implicit konvertering av ett flyttal med dubbel precision till ett komplext tal.

Implicit(Char to Complex)

Konverterar implicit ett Char värde till ett komplext tal med dubbel precision.

Implicit(Byte to Complex)

Definierar en implicit konvertering av en osignerad byte till ett komplext tal.

Implicit(SByte to Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Viktigt!

Detta API uppfyller inte CLS.

Definierar en implicit konvertering av en signerad byte till ett komplext tal.

Detta API uppfyller inte CLS.

public:
 static operator System::Numerics::Complex(System::SByte value);
[System.CLSCompliant(false)]
public static implicit operator System.Numerics.Complex(sbyte value);
[<System.CLSCompliant(false)>]
static member op_Implicit : sbyte -> System.Numerics.Complex
Public Shared Widening Operator CType (value As SByte) As Complex

Parametrar

value
SByte

Värdet som ska konverteras till ett komplext tal.

Returer

Ett objekt som innehåller värdet för parametern value som dess verkliga del och noll som dess imaginära del.

Attribut

Kommentarer

Överlagringarna av operatorn Implicit definierar de typer från vilka en kompilator automatiskt kan konvertera ett Complex-objekt utan en explicit gjutningsoperator (i C#) eller ett anrop till en konverteringsfunktion (i Visual Basic). De utvidgar konverteringar som inte innebär dataförlust och inte genererar en OverflowException.

Med den här överlagringen kan kompilatorn hantera konverteringar från en signerad byte till ett komplext tal, vilket visas i följande exempel. Observera att resultatet av konverteringen är ett komplext tal vars verkliga del är lika med den signerade byte och vars imaginära del är lika med noll.

sbyte sbyteValue = -12;
System.Numerics.Complex c1 = sbyteValue;
Console.WriteLine(c1);
// The example displays the following output:
//       (-12, 0)
let sbyteValue = -12
let c1: System.Numerics.Complex = sbyteValue
printfn $"{c1}"
// The example displays the following output:
//       (-12, 0)
Dim sbyteValue As SByte = -12
Dim c1 As System.Numerics.Complex = sbyteValue
Console.WriteLine(c1)
' The example displays the following output:
'       (-12, 0)

Gäller för

Implicit(UIntPtr to Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Viktigt!

Detta API uppfyller inte CLS.

Konverterar implicit ett UIntPtr värde till ett komplext tal med dubbel precision.

public:
 static operator System::Numerics::Complex(UIntPtr value);
[System.CLSCompliant(false)]
public static implicit operator System.Numerics.Complex(UIntPtr value);
[<System.CLSCompliant(false)>]
static member op_Implicit : unativeint -> System.Numerics.Complex
Public Shared Widening Operator CType (value As UIntPtr) As Complex

Parametrar

value
UIntPtr

unativeint

Värdet som ska konverteras.

Returer

value konverterat till ett komplext tal med dubbel precision.

Attribut

Gäller för

Implicit(UInt64 to Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Viktigt!

Detta API uppfyller inte CLS.

Definierar en implicit konvertering av ett 64-bitars osignerat heltal till ett komplext tal.

Detta API uppfyller inte CLS.

public:
 static operator System::Numerics::Complex(System::UInt64 value);
[System.CLSCompliant(false)]
public static implicit operator System.Numerics.Complex(ulong value);
[<System.CLSCompliant(false)>]
static member op_Implicit : uint64 -> System.Numerics.Complex
Public Shared Widening Operator CType (value As ULong) As Complex

Parametrar

value
UInt64

Värdet som ska konverteras till ett komplext tal.

Returer

Ett objekt som innehåller värdet för parametern value som dess verkliga del och noll som dess imaginära del.

Attribut

Kommentarer

Överlagringarna av operatorn Implicit definierar de typer från vilka en kompilator automatiskt kan konvertera ett Complex-objekt utan en explicit gjutningsoperator (i C#) eller ett anrop till en konverteringsfunktion (i Visual Basic). De utvidgar konverteringar som inte innebär dataförlust och inte genererar en OverflowException.

Med den här överlagringen kan kompilatorn hantera konverteringar från ett osignerat 64-bitars heltal till ett komplext tal, som i följande exempel visas. Observera att resultatet av konverteringen är ett komplext tal vars verkliga del är lika med det osignerade 64-bitars heltalet och vars imaginära del är lika med noll.

ulong longValue = 951034217;
System.Numerics.Complex c1 = longValue;
Console.WriteLine(c1);
// The example displays the following output:
//       (951034217, 0)
let longValue = 951034217
let c1: System.Numerics.Complex = longValue
printfn $"{c1}"
// The example displays the following output:
//       (951034217, 0)
Dim longValue As ULong = 951034217
Dim c1 As System.Numerics.Complex = longValue
Console.WriteLine(c1)
' The example displays the following output:
'       (951034217, 0)

Gäller för

Implicit(UInt32 to Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Viktigt!

Detta API uppfyller inte CLS.

Definierar en implicit konvertering av ett 32-bitars osignerat heltal till ett komplext tal.

Detta API uppfyller inte CLS.

public:
 static operator System::Numerics::Complex(System::UInt32 value);
[System.CLSCompliant(false)]
public static implicit operator System.Numerics.Complex(uint value);
[<System.CLSCompliant(false)>]
static member op_Implicit : uint32 -> System.Numerics.Complex
Public Shared Widening Operator CType (value As UInteger) As Complex

Parametrar

value
UInt32

Värdet som ska konverteras till ett komplext tal.

Returer

Ett objekt som innehåller värdet för parametern value som dess verkliga del och noll som dess imaginära del.

Attribut

Kommentarer

Överlagringarna av operatorn Implicit definierar de typer från vilka en kompilator automatiskt kan konvertera ett Complex-objekt utan en explicit gjutningsoperator (i C#) eller ett anrop till en konverteringsfunktion (i Visual Basic). De utvidgar konverteringar som inte innebär dataförlust och inte genererar en OverflowException.

Med den här överlagringen kan kompilatorn hantera konverteringar från ett osignerat 32-bitars heltal till ett komplext tal, som i följande exempel visas. Observera att resultatet av konverteringen är ett komplext tal vars verkliga del är lika med det osignerade 32-bitars heltalet och vars imaginära del är lika med noll.

uint value = 197461;
System.Numerics.Complex c1 = value;
Console.WriteLine(c1);
// The example displays the following output:
//       (197461, 0)
let value = 197461
let c1: System.Numerics.Complex = value
printfn $"{c1}"
// The example displays the following output:
//       (197461, 0)
Dim intValue As UInteger = 197461
Dim c1 As System.Numerics.Complex = intValue
Console.WriteLine(c1)
' The example displays the following output:
'       (197461, 0)

Gäller för

Implicit(UInt16 to Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Viktigt!

Detta API uppfyller inte CLS.

Definierar en implicit konvertering av ett 16-bitars osignerat heltal till ett komplext tal.

Detta API uppfyller inte CLS.

public:
 static operator System::Numerics::Complex(System::UInt16 value);
[System.CLSCompliant(false)]
public static implicit operator System.Numerics.Complex(ushort value);
[<System.CLSCompliant(false)>]
static member op_Implicit : uint16 -> System.Numerics.Complex
Public Shared Widening Operator CType (value As UShort) As Complex

Parametrar

value
UInt16

Värdet som ska konverteras till ett komplext tal.

Returer

Ett objekt som innehåller värdet för parametern value som dess verkliga del och noll som dess imaginära del.

Attribut

Kommentarer

Överlagringarna av operatorn Implicit definierar de typer från vilka en kompilator automatiskt kan konvertera ett Complex-objekt utan en explicit gjutningsoperator (i C#) eller ett anrop till en konverteringsfunktion (i Visual Basic). De utvidgar konverteringar som inte innebär dataförlust och inte genererar en OverflowException.

Med den här överlagringen kan kompilatorn hantera konverteringar från ett osignerat 16-bitars heltal till ett komplext tal, vilket visas i följande exempel. Observera att resultatet av konverteringen är ett komplext tal vars verkliga del är lika med det osignerade 16-bitars heltalet och vars imaginära del är lika med noll.

ushort shortValue = 421;
System.Numerics.Complex c1 = shortValue;
Console.WriteLine(c1);
// The example displays the following output:
//       (421, 0)
let shortValue = 421
let c1: System.Numerics.Complex = shortValue
printfn $"{c1}"
// The example displays the following output:
//       (421, 0)
Dim shortValue As UShort = 421
Dim c1 As System.Numerics.Complex = shortValue
Console.WriteLine(c1)
' The example displays the following output:
'       (421, 0)

Gäller för

Implicit(Single to Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Definierar en implicit konvertering av ett flyttal med enkel precision till ett komplext tal.

public:
 static operator System::Numerics::Complex(float value);
public static implicit operator System.Numerics.Complex(float value);
static member op_Implicit : single -> System.Numerics.Complex
Public Shared Widening Operator CType (value As Single) As Complex

Parametrar

value
Single

Värdet som ska konverteras till ett komplext tal.

Returer

Ett objekt som innehåller värdet för parametern value som dess verkliga del och noll som dess imaginära del.

Kommentarer

Överlagringarna av operatorn Implicit definierar de typer från vilka en kompilator automatiskt kan konvertera ett Complex-objekt utan en explicit gjutningsoperator (i C#) eller ett anrop till en konverteringsfunktion (i Visual Basic). De utvidgar konverteringar som inte innebär dataförlust och inte genererar en OverflowException.

Med den här överlagringen kan kompilatorn hantera konverteringar från ett Single värde till ett komplext tal, vilket visas i följande exempel. Observera att resultatet av konverteringen är ett komplext tal vars verkliga del är lika med Single värdet och vars imaginära del är lika med noll.

float singleValue = 1.032e-08f;
System.Numerics.Complex c1 = singleValue;
Console.WriteLine(c1);
// The example displays the following output:
//       (1.03199999657022E-08, 0)
let singleValue = 1.032e-08f
let c1: System.Numerics.Complex = singleValue
printfn $"{c1}"
// The example displays the following output:
//       (1.03199999657022E-08, 0)
Dim singleValue As Single = 1.032e-08
Dim c1 As System.Numerics.Complex = singleValue
Console.WriteLine(c1)
' The example displays the following output:
'       (1.03199999657022E-08, 0)

Gäller för

Implicit(BFloat16 to Complex)

Källa:
Complex.cs
public:
 static operator System::Numerics::Complex(System::Numerics::BFloat16 value);
public static implicit operator System.Numerics.Complex(System.Numerics.BFloat16 value);
static member op_Implicit : System.Numerics.BFloat16 -> System.Numerics.Complex
Public Shared Widening Operator CType (value As BFloat16) As Complex

Parametrar

value
BFloat16

Returer

Gäller för

Implicit(Int32 to Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Definierar en implicit konvertering av ett 32-bitars signerat heltal till ett komplext tal.

public:
 static operator System::Numerics::Complex(int value);
public static implicit operator System.Numerics.Complex(int value);
static member op_Implicit : int -> System.Numerics.Complex
Public Shared Widening Operator CType (value As Integer) As Complex

Parametrar

value
Int32

Värdet som ska konverteras till ett komplext tal.

Returer

Ett objekt som innehåller värdet för parametern value som dess verkliga del och noll som dess imaginära del.

Kommentarer

Överlagringarna av operatorn Implicit definierar de typer från vilka en kompilator automatiskt kan konvertera ett Complex-objekt utan en explicit gjutningsoperator (i C#) eller ett anrop till en konverteringsfunktion (i Visual Basic). De utvidgar konverteringar som inte innebär dataförlust och inte genererar en OverflowException.

Med den här överlagringen kan kompilatorn hantera konverteringar från ett signerat 32-bitars heltal till ett komplext tal, vilket visas i följande exempel. Observera att resultatet av konverteringen är ett komplext tal vars verkliga del är lika med det signerade 32-bitars heltalet och vars imaginära del är lika med noll.

int intValue = 1034217;
System.Numerics.Complex c1 = intValue;
Console.WriteLine(c1);
// The example displays the following output:
//       (1034217, 0)
let intValue = 1034217
let c1: System.Numerics.Complex = intValue
printfn $"{c1}"
// The example displays the following output:
//       (1034217, 0)
Dim intValue As Integer = 1034217
Dim c1 As System.Numerics.Complex = intValue
Console.WriteLine(c1)
' The example displays the following output:
'       (1034217, 0)

Gäller för

Implicit(Int64 to Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Definierar en implicit konvertering av ett 64-bitars signerat heltal till ett komplext tal.

public:
 static operator System::Numerics::Complex(long value);
public static implicit operator System.Numerics.Complex(long value);
static member op_Implicit : int64 -> System.Numerics.Complex
Public Shared Widening Operator CType (value As Long) As Complex

Parametrar

value
Int64

Värdet som ska konverteras till ett komplext tal.

Returer

Ett objekt som innehåller värdet för parametern value som dess verkliga del och noll som dess imaginära del.

Kommentarer

Överlagringarna av operatorn Implicit definierar de typer från vilka en kompilator automatiskt kan konvertera ett Complex-objekt utan en explicit gjutningsoperator (i C#) eller ett anrop till en konverteringsfunktion (i Visual Basic). De utvidgar konverteringar som inte innebär dataförlust och inte genererar en OverflowException.

Med den här överlagringen kan kompilatorn hantera konverteringar från ett signerat 64-bitars heltal till ett komplext tal, som i följande exempel visas. Observera att resultatet av konverteringen är ett komplext tal vars verkliga del är lika med det signerade 64-bitars heltalet och vars imaginära del är lika med noll.

long longValue = 951034217;
System.Numerics.Complex c1 = longValue;
Console.WriteLine(c1);
// The example displays the following output:
//       (951034217, 0)
let longValue = 951034217
let c1: System.Numerics.Complex = longValue
printfn $"{c1}"
// The example displays the following output:
//       (951034217, 0)
Dim longValue As Long = 951034217
Dim c1 As System.Numerics.Complex = longValue
Console.WriteLine(c1)
' The example displays the following output:
'       (951034217, 0)

Gäller för

Implicit(IntPtr to Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Konverterar implicit ett IntPtr värde till ett komplext tal med dubbel precision.

public:
 static operator System::Numerics::Complex(IntPtr value);
public static implicit operator System.Numerics.Complex(IntPtr value);
static member op_Implicit : nativeint -> System.Numerics.Complex
Public Shared Widening Operator CType (value As IntPtr) As Complex

Parametrar

value
IntPtr

nativeint

Värdet som ska konverteras.

Returer

value konverterat till ett komplext tal med dubbel precision.

Gäller för

Implicit(Int16 to Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Definierar en implicit konvertering av ett 16-bitars signerat heltal till ett komplext tal.

public:
 static operator System::Numerics::Complex(short value);
public static implicit operator System.Numerics.Complex(short value);
static member op_Implicit : int16 -> System.Numerics.Complex
Public Shared Widening Operator CType (value As Short) As Complex

Parametrar

value
Int16

Värdet som ska konverteras till ett komplext tal.

Returer

Ett objekt som innehåller värdet för parametern value som dess verkliga del och noll som dess imaginära del.

Kommentarer

Överlagringarna av operatorn Implicit definierar de typer från vilka en kompilator automatiskt kan konvertera ett Complex-objekt utan en explicit gjutningsoperator (i C#) eller ett anrop till en konverteringsfunktion (i Visual Basic). De utvidgar konverteringar som inte innebär dataförlust och inte genererar en OverflowException.

Med den här överlagringen kan kompilatorn hantera konverteringar från ett signerat 16-bitars heltal till ett komplext tal, som i följande exempel visas. Observera att resultatet av konverteringen är ett komplext tal vars verkliga del är lika med det signerade 16-bitars heltalet och vars imaginära del är lika med noll.

short shortValue = 16024;
System.Numerics.Complex c1 = shortValue;
Console.WriteLine(c1);
// The example displays the following output:
//       (16024, 0)
let shortValue = 16024
let c1: System.Numerics.Complex = shortValue
printfn $"{c1}"
// The example displays the following output:
//       (16024, 0)
Dim shortValue As Short = 16024
Dim c1 As System.Numerics.Complex = shortValue
Console.WriteLine(c1)
' The example displays the following output:
'       (16024, 0)

Gäller för

Implicit(Half to Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Konverterar implicit ett Half värde till ett komplext tal med dubbel precision.

public:
 static operator System::Numerics::Complex(Half value);
public static implicit operator System.Numerics.Complex(Half value);
static member op_Implicit : Half -> System.Numerics.Complex
Public Shared Widening Operator CType (value As Half) As Complex

Parametrar

value
Half

Värdet som ska konverteras.

Returer

value konverterat till ett komplext tal med dubbel precision.

Gäller för

Implicit(Double to Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Definierar en implicit konvertering av ett flyttal med dubbel precision till ett komplext tal.

public:
 static operator System::Numerics::Complex(double value);
public static implicit operator System.Numerics.Complex(double value);
static member op_Implicit : double -> System.Numerics.Complex
Public Shared Widening Operator CType (value As Double) As Complex

Parametrar

value
Double

Värdet som ska konverteras till ett komplext tal.

Returer

Ett objekt som innehåller värdet för parametern value som dess verkliga del och noll som dess imaginära del.

Kommentarer

Överlagringarna av operatorn Implicit definierar de typer från vilka en kompilator automatiskt kan konvertera ett Complex-objekt utan en explicit gjutningsoperator (i C#) eller ett anrop till en konverteringsfunktion (i Visual Basic). De utvidgar konverteringar som inte innebär dataförlust och inte genererar en OverflowException.

Med den här överlagringen kan kompilatorn hantera konverteringar från ett Double värde till ett komplext tal, vilket visas i följande exempel. Observera att resultatet av konverteringen är ett komplext tal vars verkliga del är lika med Double värdet och vars imaginära del är lika med noll.

double doubleValue = 1.032e-16;
System.Numerics.Complex c1 = doubleValue;
Console.WriteLine(c1);
// The example displays the following output:
//       (1.032E-16, 0)
let doubleValue = 1.032e-16
let c1: System.Numerics.Complex = doubleValue
printfn $"{c1}"
// The example displays the following output:
//       (1.032E-16, 0)
Dim doubleValue As Double = 1.032e-16
Dim c1 As System.Numerics.Complex = doubleValue
Console.WriteLine(c1)
' The example displays the following output:
'       (1.032E-16, 0)

Gäller för

Implicit(Char to Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Konverterar implicit ett Char värde till ett komplext tal med dubbel precision.

public:
 static operator System::Numerics::Complex(char value);
public static implicit operator System.Numerics.Complex(char value);
static member op_Implicit : char -> System.Numerics.Complex
Public Shared Widening Operator CType (value As Char) As Complex

Parametrar

value
Char

Värdet som ska konverteras.

Returer

value konverterat till ett komplext tal med dubbel precision.

Gäller för

Implicit(Byte to Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Definierar en implicit konvertering av en osignerad byte till ett komplext tal.

public:
 static operator System::Numerics::Complex(System::Byte value);
public static implicit operator System.Numerics.Complex(byte value);
static member op_Implicit : byte -> System.Numerics.Complex
Public Shared Widening Operator CType (value As Byte) As Complex

Parametrar

value
Byte

Värdet som ska konverteras till ett komplext tal.

Returer

Ett objekt som innehåller värdet för parametern value som dess verkliga del och noll som dess imaginära del.

Kommentarer

Överlagringarna av operatorn Implicit definierar de typer från vilka en kompilator automatiskt kan konvertera ett Complex-objekt utan en explicit gjutningsoperator (i C#) eller ett anrop till en konverteringsfunktion (i Visual Basic). De utvidgar konverteringar som inte innebär dataförlust och inte genererar en OverflowException.

Med den här överlagringen kan kompilatorn hantera konverteringar från ett Byte värde till ett komplext tal, vilket visas i följande exempel. Observera att resultatet av konverteringen är ett komplext tal vars verkliga del är lika med Byte värdet och vars imaginära del är lika med noll.

byte byteValue = 122;
System.Numerics.Complex c1 = byteValue;
Console.WriteLine(c1);
// The example displays the following output:
//       (122, 0)
let byteValue = 122
let c1: System.Numerics.Complex = byteValue
printfn $"{c1}"
// The example displays the following output:
//       (122, 0)
Dim byteValue As Byte = 122
Dim c1 As System.Numerics.Complex = byteValue
Console.WriteLine(c1)
' The example displays the following output:
'       (122, 0)

Gäller för