The Int128 type exposes the following members.

Constructors

  NameDescription
Public methodInt128
Initializes a new instance of the Int128 struct.

Methods

  NameDescription
Public methodStatic memberAbs
Gets the absolute value of an Int128.
Public methodStatic memberAdd
Adds two Int128 values and returns the result.
Public methodAlign
Aligns the value to the next specified boundary.
Public methodCompareTo(Object)
Compares the current instance with another object of the same type.
Public methodCompareTo(Int128)
Compares the current instance with another object of the same type.
Public methodStatic memberDivide
Divides one Int128 by another and returns the result.
Public methodStatic memberDivRem
Divides one Int128 value by another, using signed integer division, and returns the result and the remainder.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueType..::..Equals(Object).)
Public methodEquals(Int128)
Indicates whether the current object is equal to another object of the same type.
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueType..::..GetHashCode()()()().)
Public methodGetPadding
Calculates the padding required to align the value to the next specified boundary.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetTypeCode
Returns the TypeCode for this instance.
Public methodStatic memberMax
Returns the larger of two Int128 values.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberMin
Returns the smaller of two Int128 values.
Public methodStatic memberMultiply
Returns the product of two Int128 values.
Public methodStatic memberNegate
Negates an Int128.
Public methodStatic memberRemainder
Performs integer division on two Int128 values and returns the remainder.
Public methodStatic memberSubtract
Subtracts one Int128 from another and returns the result.
Public methodToString()()()()
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Public methodToString(String, IFormatProvider)
Formats the value of the current instance using the specified format.
Public methodStatic memberUnsignedDivRem
Divides one Int128 value by another, using unsigned integer division, and returns the result and the remainder.

Operators

  NameDescription
Public operatorStatic memberAddition
Adds the values of two specified Int128 values.
Public operatorStatic memberBitwiseAnd
Performs a bitwise AND operation on two Int128 values.
Public operatorStatic memberBitwiseOr
Performs a bitwise OR operation on two Int128 values.
Public operatorStatic memberDecrement
Decrements a Int128 value by 1.
Public operatorStatic memberDivision
Divides a specified Int128 value by another specified Int128 value by using integer division.
Public operatorStatic memberEquality
Returns a value that indicates whether two Int128 objects have the same value.
Public operatorStatic memberExclusiveOr
Performs a bitwise exclusive OR (XOR) operation on two Int128 values.
Public operatorStatic memberExplicitNarrowingExplicitExplicitExplicit(Int128 to Int64)
Converts the specfied signed 128-bit value to a signed 64-bit value.
Public operatorStatic memberExplicitNarrowingExplicitExplicitExplicit(Int128 to UInt64)
Converts the specfied signed 128-bit value to an unsigned 64-bit value.
Public operatorStatic memberExplicitNarrowingExplicitExplicitExplicit(Int128 to SByte)
Converts the specfied signed 128-bit value to a signed 8-bit value.
Public operatorStatic memberExplicitNarrowingExplicitExplicitExplicit(Int128 to Byte)
Converts the specfied signed 128-bit value to an unsigned 8-bit value.
Public operatorStatic memberExplicitNarrowingExplicitExplicitExplicit(Int128 to UInt16)
Converts the specfied signed 128-bit value to an unsigned 16-bit value.
Public operatorStatic memberExplicitNarrowingExplicitExplicitExplicit(Int128 to Int16)
Converts the specfied signed 128-bit value to a signed 16-bit value.
Public operatorStatic memberExplicitNarrowingExplicitExplicitExplicit(Int128 to UInt32)
Converts the specfied signed 128-bit value to an unsigned 32-bit value.
Public operatorStatic memberExplicitNarrowingExplicitExplicitExplicit(Int128 to Int32)
Converts the specfied signed 128-bit value to a signed 32-bit value.
Public operatorStatic memberGreaterThan
Returns a value that indicates whether a Int128 value is greater than another Int128 value.
Public operatorStatic memberGreaterThanOrEqual
Returns a value that indicates whether a Int128 value is greater than or equal to another Int128 value.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(Byte to Int128)
Converts the specfied unsigned 8-bit value to a signed 128-bit value.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(Int16 to Int128)
Converts the specfied signed 16-bit value to a signed 128-bit value.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(Int32 to Int128)
Converts the specfied signed 32-bit value to a signed 128-bit value.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(Int64 to Int128)
Converts the specfied signed 64-bit value to a signed 128-bit value.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(SByte to Int128)
Converts the specfied signed 8-bit value to a signed 128-bit value.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(UInt16 to Int128)
Converts the specfied unsigned 16-bit value to a signed 128-bit value.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(UInt32 to Int128)
Converts the specfied unsigned 32-bit value to a signed 128-bit value.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(UInt64 to Int128)
Converts the specfied unsigned 64-bit value to a signed 128-bit value.
Public operatorStatic memberIncrement
Increments a Int128 value by 1.
Public operatorStatic memberInequality
Returns a value that indicates whether two Int128 objects have different values.
Public operatorStatic memberLeftShift
Shifts an Int128 value a specified number of bits to the left.
Public operatorStatic memberLessThan
Returns a value that indicates whether a Int128 value is less than another Int128 value.
Public operatorStatic memberLessThanOrEqual
Returns a value that indicates whether a Int128 value is less than or equal to another Int128 value.
Public operatorStatic memberModulus
Returns the remainder that results from division with two specified Int128 values.
Public operatorStatic memberMultiply
Multiplies two specified Int128 values.
Public operatorStatic memberOnesComplement
Returns the bitwise one's complement of an Int128 value.
Public operatorStatic memberRightShift
Shifts an Int128 value a specified number of bits to the right.
Public operatorStatic memberSubtraction
Subtracts an Int128 from another Int128 value.
Public operatorStatic memberUnaryNegation
Negates a Int128 value.
Public operatorStatic memberUnaryPlus
Returns the value of the Int128.

Fields

  NameDescription
Public fieldStatic memberMaxValue
The maximum value a Int128 can represent.
Public fieldStatic memberMinusOne
A Int128 value of -1.
Public fieldStatic memberMinValue
The minimum value a Int128 can represent.
Public fieldStatic memberOne
A Int128 value of 1.
Public fieldStatic memberZero
A Int128 value of 0.

Properties

  NameDescription
Public propertyHigh
Gets the 64 most significant bits of the value.
Public propertyIsEven
Gets whether the value of this Int128 is an even number.
Public propertyIsOne
Gets whether the value of this Int128 is one.
Public propertyIsPowerOfTwo
Gets whether the value of this Int128 is a power of two.
Public propertyIsZero
Gets whether the value of this Int128 is zero.
Public propertyLow
Gets the 64 least significant bits of the value.
Public propertySign
Gets a number that indicates the sign (negative, positive, or zero) of the current Int128.

See Also