英語で読む

次の方法で共有


BigInteger.Implicit Operator

定義

BigInteger オブジェクトと別の型との間の暗黙的な変換を定義します。

オーバーロード

Implicit(UInt16 to BigInteger)

16 ビット符号なし整数値から BigInteger 値への暗黙的な変換を定義します。

この API は、CLS に準拠していません。 準拠している代替として Implicit(Int32 to BigInteger).を使用できます。

Implicit(UInt32 to BigInteger)

32 ビット符号なし整数値から BigInteger 値への暗黙的な変換を定義します。

この API は、CLS に準拠していません。 準拠している代替として Implicit(Int64 to BigInteger).を使用できます。

Implicit(UInt128 to BigInteger)

値を UInt128 整数に暗黙的に変換します。

Implicit(UIntPtr to BigInteger)

値を UIntPtr 整数に暗黙的に変換します。

Implicit(UInt64 to BigInteger)

64 ビット符号なし整数値から BigInteger 値への暗黙的な変換を定義します。

この API は、CLS に準拠していません。 準拠している代替として Double.を使用できます。

Implicit(SByte to BigInteger)

8 ビット符号付き整数値から BigInteger 値への暗黙的な変換を定義します。

この API は、CLS に準拠していません。 準拠している代替として BigInteger(Int32).を使用できます。

Implicit(Int128 to BigInteger)

値を Int128 整数に暗黙的に変換します。

Implicit(Int64 to BigInteger)

符号付き 64 ビット整数値から BigInteger 値への暗黙的な変換を定義します。

Implicit(Int32 to BigInteger)

符号付き 32 ビット整数値から BigInteger 値への暗黙的な変換を定義します。

Implicit(Int16 to BigInteger)

符号付き 16 ビット整数値から BigInteger 値への暗黙的な変換を定義します。

Implicit(IntPtr to BigInteger)

値を IntPtr 整数に暗黙的に変換します。

Implicit(Char to BigInteger)

値を Char 整数に暗黙的に変換します。

Implicit(Byte to BigInteger)

符号なしバイト値から BigInteger 値への暗示的な変換を定義します。

Implicit(UInt16 to BigInteger)

ソース:
BigInteger.cs
ソース:
BigInteger.cs
ソース:
BigInteger.cs

重要

この API は CLS 準拠ではありません。

CLS 準拠の代替
System.Numerics.BigInteger.Implicit(Int32 to BigInteger)

16 ビット符号なし整数値から BigInteger 値への暗黙的な変換を定義します。

この API は、CLS に準拠していません。 準拠している代替として Implicit(Int32 to BigInteger).を使用できます。

C#
[System.CLSCompliant(false)]
public static implicit operator System.Numerics.BigInteger(ushort value);

パラメーター

value
UInt16

BigInteger へと変換する値。

戻り値

value パラメーターの値を格納しているオブジェクト。

属性

注釈

暗黙的な演算子をサポートしていない言語の場合、代替メソッドは です BigInteger.BigInteger(UInt32)

メソッドの Implicit(Byte to BigInteger) オーバーロードは、明示的なキャスト演算子 (C#では) または変換関数の呼び出し (Visual Basic では) を使用せずに、コンパイラが値を自動的に変換 BigInteger できる型または変換元の型を定義します。 これらは、データ損失を伴わない拡大変換であり、 を OverflowExceptionスローしません。 このオーバーロードを使用すると、次の例に示すように、コンパイラは UInt16 値から値への BigInteger 変換を処理できます。

C#
ushort uShortValue = 25064;
BigInteger number = uShortValue;
number += uShortValue;
Console.WriteLine(number < uShortValue);           // Displays False

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0

Implicit(UInt32 to BigInteger)

ソース:
BigInteger.cs
ソース:
BigInteger.cs
ソース:
BigInteger.cs

重要

この API は CLS 準拠ではありません。

CLS 準拠の代替
System.Numerics.BigInteger.Implicit(Int64 to BigInteger)

32 ビット符号なし整数値から BigInteger 値への暗黙的な変換を定義します。

この API は、CLS に準拠していません。 準拠している代替として Implicit(Int64 to BigInteger).を使用できます。

C#
[System.CLSCompliant(false)]
public static implicit operator System.Numerics.BigInteger(uint value);

パラメーター

value
UInt32

BigInteger へと変換する値。

戻り値

value パラメーターの値を格納しているオブジェクト。

属性

注釈

暗黙的な演算子をサポートしていない言語の場合、代替メソッドは です BigInteger.BigInteger(UInt32)

メソッドの Implicit(Byte to BigInteger) オーバーロードは、明示的なキャスト演算子 (C#では) または変換関数の呼び出し (Visual Basic では) を使用せずに、コンパイラが値を自動的に変換 BigInteger できる型または変換元の型を定義します。 これらは、データ損失を伴わない拡大変換であり、 を OverflowExceptionスローしません。 このオーバーロードを使用すると、次の例に示すように、コンパイラは UInt32 値から値への BigInteger 変換を処理できます。

C#
uint uIntValue = 65000;
BigInteger number = uIntValue;
number = BigInteger.Multiply(number, uIntValue);
Console.WriteLine(number == uIntValue);           // Displays False

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0

Implicit(UInt128 to BigInteger)

ソース:
BigInteger.cs
ソース:
BigInteger.cs
ソース:
BigInteger.cs

重要

この API は CLS 準拠ではありません。

値を UInt128 整数に暗黙的に変換します。

C#
[System.CLSCompliant(false)]
public static implicit operator System.Numerics.BigInteger(UInt128 value);

パラメーター

value
UInt128

変換する値。

戻り値

value 大きな整数に変換されます。

属性

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET 7, 8, 9, 10

Implicit(UIntPtr to BigInteger)

ソース:
BigInteger.cs
ソース:
BigInteger.cs
ソース:
BigInteger.cs

重要

この API は CLS 準拠ではありません。

値を UIntPtr 整数に暗黙的に変換します。

C#
[System.CLSCompliant(false)]
public static implicit operator System.Numerics.BigInteger(UIntPtr value);

パラメーター

value
UIntPtr

変換する値。

戻り値

value 大きな整数に変換されます。

属性

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET 7, 8, 9, 10

Implicit(UInt64 to BigInteger)

ソース:
BigInteger.cs
ソース:
BigInteger.cs
ソース:
BigInteger.cs

重要

この API は CLS 準拠ではありません。

CLS 準拠の代替
System.Double

64 ビット符号なし整数値から BigInteger 値への暗黙的な変換を定義します。

この API は、CLS に準拠していません。 準拠している代替として Double.を使用できます。

C#
[System.CLSCompliant(false)]
public static implicit operator System.Numerics.BigInteger(ulong value);

パラメーター

value
UInt64

BigInteger へと変換する値。

戻り値

value パラメーターの値を格納しているオブジェクト。

属性

注釈

暗黙的な演算子をサポートしていない言語の場合、代替メソッドは です BigInteger.BigInteger(UInt64)

メソッドの Implicit(Byte to BigInteger) オーバーロードは、明示的なキャスト演算子 (C#では) または変換関数の呼び出し (Visual Basic では) を使用せずに、コンパイラが値を自動的に変換 BigInteger できる型または変換元の型を定義します。 これらは、データ損失を伴わない拡大変換であり、 を OverflowExceptionスローしません。 このオーバーロードを使用すると、次の例に示すように、コンパイラは UInt64 値から値への BigInteger 変換を処理できます。

C#
ulong uLongValue = 1358754982;
BigInteger number = uLongValue;
number = number * 2 - uLongValue;
Console.WriteLine(number * uLongValue / uLongValue); // Displays 1358754982

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0

Implicit(SByte to BigInteger)

ソース:
BigInteger.cs
ソース:
BigInteger.cs
ソース:
BigInteger.cs

重要

この API は CLS 準拠ではありません。

CLS 準拠の代替
System.Numerics.BigInteger.BigInteger(Int32)

8 ビット符号付き整数値から BigInteger 値への暗黙的な変換を定義します。

この API は、CLS に準拠していません。 準拠している代替として BigInteger(Int32).を使用できます。

C#
[System.CLSCompliant(false)]
public static implicit operator System.Numerics.BigInteger(sbyte value);

パラメーター

value
SByte

BigInteger へと変換する値。

戻り値

value パラメーターの値を格納しているオブジェクト。

属性

注釈

暗黙的な演算子をサポートしていない言語の場合、代替メソッドは です BigInteger.BigInteger(Int32)

メソッドの Implicit(Byte to BigInteger) オーバーロードは、明示的なキャスト演算子 (C#では) または変換関数の呼び出し (Visual Basic では) を使用せずに、コンパイラが値を自動的に変換 BigInteger できる型または変換元の型を定義します。 これらは、データ損失を伴わない拡大変換であり、 を OverflowExceptionスローしません。 このオーバーロードを使用すると、次の例に示すように、コンパイラは SByte 値から値への BigInteger 変換を処理できます。

C#
sbyte sByteValue = -12;
BigInteger number = BigInteger.Pow(sByteValue, 3);
Console.WriteLine(number < sByteValue);            // Displays True

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0

Implicit(Int128 to BigInteger)

ソース:
BigInteger.cs
ソース:
BigInteger.cs
ソース:
BigInteger.cs

値を Int128 整数に暗黙的に変換します。

C#
public static implicit operator System.Numerics.BigInteger(Int128 value);

パラメーター

value
Int128

変換する値。

戻り値

value 大きな整数に変換されます。

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET 7, 8, 9, 10

Implicit(Int64 to BigInteger)

ソース:
BigInteger.cs
ソース:
BigInteger.cs
ソース:
BigInteger.cs

符号付き 64 ビット整数値から BigInteger 値への暗黙的な変換を定義します。

C#
public static implicit operator System.Numerics.BigInteger(long value);

パラメーター

value
Int64

BigInteger へと変換する値。

戻り値

value パラメーターの値を格納しているオブジェクト。

注釈

暗黙的な演算子をサポートしていない言語の場合、代替メソッドは です BigInteger.BigInteger(Int64)

メソッドの Implicit(Byte to BigInteger) オーバーロードは、明示的なキャスト演算子 (C#では) または変換関数の呼び出し (Visual Basic では) を使用せずに、コンパイラが値を自動的に変換 BigInteger できる型または変換元の型を定義します。 これらは、データ損失を伴わない拡大変換であり、 を OverflowExceptionスローしません。 このオーバーロードを使用すると、次の例に示すように、コンパイラは Int64 値から値への BigInteger 変換を処理できます。

C#
long longValue = 1358754982;
BigInteger number = longValue;
number = number + (longValue / 2);
Console.WriteLine(number * longValue / longValue); // Displays 2038132473

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0

Implicit(Int32 to BigInteger)

ソース:
BigInteger.cs
ソース:
BigInteger.cs
ソース:
BigInteger.cs

符号付き 32 ビット整数値から BigInteger 値への暗黙的な変換を定義します。

C#
public static implicit operator System.Numerics.BigInteger(int value);

パラメーター

value
Int32

BigInteger へと変換する値。

戻り値

value パラメーターの値を格納しているオブジェクト。

注釈

暗黙的な演算子をサポートしていない言語の場合、代替メソッドは です BigInteger.BigInteger(Int32)

メソッドの Implicit(Byte to BigInteger) オーバーロードは、明示的なキャスト演算子 (C#) や変換関数の呼び出し (Visual Basic の場合) を使用せずに、コンパイラが値を自動的に変換 BigInteger できる型を定義します。 これらは、データ損失を伴わない拡大変換であり、 を OverflowExceptionスローしません。 このオーバーロードにより、次の例に示すように、コンパイラは Int32 値から値への BigInteger 変換を処理できます。

C#
int intValue = 65000;
BigInteger number = intValue;
number = BigInteger.Multiply(number, intValue);
Console.WriteLine(number == intValue);            // Displays False

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0

Implicit(Int16 to BigInteger)

ソース:
BigInteger.cs
ソース:
BigInteger.cs
ソース:
BigInteger.cs

符号付き 16 ビット整数値から BigInteger 値への暗黙的な変換を定義します。

C#
public static implicit operator System.Numerics.BigInteger(short value);

パラメーター

value
Int16

BigInteger へと変換する値。

戻り値

value パラメーターの値を格納しているオブジェクト。

注釈

暗黙的な演算子をサポートしていない言語の場合、代替メソッドは です BigInteger.BigInteger(Int32)

メソッドの Implicit(Byte to BigInteger) オーバーロードは、明示的なキャスト演算子 (C#) や変換関数の呼び出し (Visual Basic の場合) を使用せずに、コンパイラが値を自動的に変換 BigInteger できる型を定義します。 これらは、データ損失を伴わない拡大変換であり、 を OverflowExceptionスローしません。 このオーバーロードにより、次の例に示すように、コンパイラは Int16 値から値への BigInteger 変換を処理できます。

C#
short shortValue = 25064;
BigInteger number = shortValue;
number += shortValue;
Console.WriteLine(number < shortValue);           // Displays False

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0

Implicit(IntPtr to BigInteger)

ソース:
BigInteger.cs
ソース:
BigInteger.cs
ソース:
BigInteger.cs

値を IntPtr 整数に暗黙的に変換します。

C#
public static implicit operator System.Numerics.BigInteger(IntPtr value);

パラメーター

value
IntPtr

変換する値。

戻り値

value は大きな整数に変換されます。

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET 7, 8, 9, 10

Implicit(Char to BigInteger)

ソース:
BigInteger.cs
ソース:
BigInteger.cs
ソース:
BigInteger.cs

値を Char 整数に暗黙的に変換します。

C#
public static implicit operator System.Numerics.BigInteger(char value);

パラメーター

value
Char

変換する値。

戻り値

value は大きな整数に変換されます。

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET 7, 8, 9, 10

Implicit(Byte to BigInteger)

ソース:
BigInteger.cs
ソース:
BigInteger.cs
ソース:
BigInteger.cs

符号なしバイト値から BigInteger 値への暗示的な変換を定義します。

C#
public static implicit operator System.Numerics.BigInteger(byte value);

パラメーター

value
Byte

BigInteger へと変換する値。

戻り値

value パラメーターの値を格納しているオブジェクト。

注釈

パラメーターの value 小数部は、変換前に切り捨てられます。

暗黙的な演算子をサポートしていない言語の場合、代替メソッドは です BigInteger.BigInteger(Int32)

メソッドの Implicit(Byte to BigInteger) オーバーロードは、明示的なキャスト演算子 (C#) や変換関数の呼び出し (Visual Basic の場合) を使用せずに、コンパイラが値を自動的に変換 BigInteger できる型を定義します。 これらは、データ損失を伴わない拡大変換であり、 を OverflowExceptionスローしません。 このオーバーロードにより、次の例に示すように、コンパイラは Byte 値から値への BigInteger 変換を処理できます。

C#
byte byteValue = 254;
BigInteger number = byteValue;
number = BigInteger.Add(number, byteValue);
Console.WriteLine(number > byteValue);            // Displays True

適用対象

.NET 10 およびその他のバージョン
製品 バージョン
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1
UWP 10.0