Operator explicit operator

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Bson

Assembly

MongoDB.Bson.dll

explicit operator byte(Decimal128)

public static explicit operator byte(Decimal128 value)

Parameters

value Decimal128

The value to convert.

Returns

byte

The result of the conversion.

explicit operator char(Decimal128)

public static explicit operator char(Decimal128 value)

Parameters

value Decimal128

The value to convert.

Returns

char

The result of the conversion.

explicit operator decimal(Decimal128)

public static explicit operator decimal(Decimal128 value)

Parameters

value Decimal128

The value to convert.

Returns

decimal

The result of the conversion.

explicit operator Decimal128(double)

public static explicit operator Decimal128(double value)

Parameters

value double

The value.

Returns

Decimal128

The result of the conversion.

explicit operator Decimal128(float)

public static explicit operator Decimal128(float value)

Parameters

value float

The value.

Returns

Decimal128

The result of the conversion.

explicit operator double(Decimal128)

public static explicit operator double(Decimal128 value)

Parameters

value Decimal128

The value to convert.

Returns

double

The result of the conversion.

explicit operator float(Decimal128)

public static explicit operator float(Decimal128 value)

Parameters

value Decimal128

The value to convert.

Returns

float

The result of the conversion.

explicit operator int(Decimal128)

Performs an explicit conversion from Decimal128 to int.

public static explicit operator int(Decimal128 value)

Parameters

value Decimal128

The value to convert.

Returns

int

The result of the conversion.

explicit operator long(Decimal128)

public static explicit operator long(Decimal128 value)

Parameters

value Decimal128

The value to convert.

Returns

long

The result of the conversion.

explicit operator sbyte(Decimal128)

[CLSCompliant(false)]
public static explicit operator sbyte(Decimal128 value)

Parameters

value Decimal128

The value to convert.

Returns

sbyte

The result of the conversion.

explicit operator short(Decimal128)

public static explicit operator short(Decimal128 value)

Parameters

value Decimal128

The value to convert.

Returns

short

The result of the conversion.

explicit operator uint(Decimal128)

[CLSCompliant(false)]
public static explicit operator uint(Decimal128 value)

Parameters

value Decimal128

The value to convert.

Returns

uint

The result of the conversion.

explicit operator ulong(Decimal128)

[CLSCompliant(false)]
public static explicit operator ulong(Decimal128 value)

Parameters

value Decimal128

The value to convert.

Returns

ulong

The result of the conversion.

explicit operator ushort(Decimal128)

[CLSCompliant(false)]
public static explicit operator ushort(Decimal128 value)

Parameters

value Decimal128

The value to convert.

Returns

ushort

The result of the conversion.