Skip to content

Reference

Number Members

Represents the base type of any numerical value.

Reference

Number Members ​

Type
Number
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Methods ​

CompareTo ​

2 overloads

OverloadDescription
CompareTo(object)Compares the current Number with the other.
CompareTo(Number)Compares the current Number with another Number.

CompareTo(object) ​

Compares the current Number with the other.

csharp
public int CompareTo(object other)
vbnet
Public Function CompareTo(other As Object) As Integer

Parameters

NameTypeDescription
otherObjectThe Number to compare with this Number.

Returns

Int32

A 32-Number signed integer that indicates the relative order of the objects being compared (CompareTo(object)).

Implements

CompareTo(object)

CompareTo(Number) ​

Compares the current Number with another Number.

csharp
public int CompareTo(Number other)
vbnet
Public Function CompareTo(other As Number) As Integer

Parameters

NameTypeDescription
otherNumberThe Number to compare with this Number.

Returns

Int32

A 32-Number signed integer that indicates the relative order of the objects being compared (CompareTo(T)).

Implements

CompareTo(Number)

Equals ​

2 overloads

OverloadDescription
Equals(object)overrideDetermines whether the specified other is equal to this Number.
Equals(Number)Determines whether the specified other is equal to this Number.

Equals(object) ​

override

Determines whether the specified other is equal to this Number.

csharp
public override bool Equals(object other)
vbnet
Public Overrides Function Equals(other As Object) As Boolean

Parameters

NameTypeDescription
otherObjectThe Number to compare to the current Number.

Returns

Boolean

The value true if the specified Number is equal to the current Number; otherwise the value false.

Overrides

Equals(object)

Equals(Number) ​

Determines whether the specified other is equal to this Number.

csharp
public bool Equals(Number other)
vbnet
Public Function Equals(other As Number) As Boolean

Parameters

NameTypeDescription
otherNumberThe Number to compare to the current Number.

Returns

Boolean

The value true if the specified Number is equal to the current Number; otherwise the value false.

Implements

Equals(Number)

GetHashCode ​

override

Retrieves a hash code for this Number.

csharp
public override int GetHashCode()
vbnet
Public Overrides Function GetHashCode() As Integer

Returns

Int32

An int that contains the hash code for the Number.

Overrides

GetHashCode()

GetTypeCode ​

Returns the type code for the Number value type.

csharp
public TypeCode GetTypeCode()
vbnet
Public Function GetTypeCode() As TypeCode

Returns

TypeCode

The enumerated constant Boolean.

Implements

GetTypeCode()

ToString ​

4 overloads

OverloadDescription
ToString()overrideConverts the numeric value of this instance to its equivalent string representation.
ToString(IFormatProvider)Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
ToString(string)Converts the numeric value of this instance to its equivalent string representation, using the specified format.
ToString(string, IFormatProvider)Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.

ToString() ​

override

Converts the numeric value of this instance to its equivalent string representation.

csharp
public override string ToString()
vbnet
Public Overrides Function ToString() As String

Returns

String

The string representation of the value of this instance.

Overrides

ToString()

ToString(IFormatProvider) ​

Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.

csharp
public string ToString(IFormatProvider provider)
vbnet
Public Function ToString(provider As IFormatProvider) As String

Parameters

NameTypeDescription
providerIFormatProviderAn object that supplies culture-specific formatting information.

Returns

String

The string representation of the value of this instance, as specified by provider.

Implements

ToString(IFormatProvider)

ToString(string) ​

Converts the numeric value of this instance to its equivalent string representation, using the specified format.

csharp
public string ToString(string format)
vbnet
Public Function ToString(format As String) As String

Parameters

NameTypeDescription
formatStringA standard or custom numeric format string.

Returns

String

The string representation of the value of this instance as specified by format.

Exceptions

ExceptionCondition
FormatExceptionThe format is invalid.

ToString(string, IFormatProvider) ​

Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.

csharp
public string ToString(string format, IFormatProvider provider)
vbnet
Public Function ToString(
    format As String,
    provider As IFormatProvider) As String

Parameters

NameTypeDescription
formatStringA standard or custom numeric format string.
providerIFormatProviderAn object that supplies culture-specific formatting information.

Returns

String

The string representation of the value of this instance as specified by format and provider.

Exceptions

ExceptionCondition
FormatExceptionThe format is invalid.

Operators ​

Equality ​

static

Returns a value indicating whether two values of Number are equal.

csharp
public static bool operator ==(Number left, Number right)
vbnet
Public Shared Operator =(left As Number, right As Number) As Boolean

Parameters

NameTypeDescription
leftNumberThe first Number to compare.
rightNumberThe second Number to compare.

Returns

Boolean

The value true if left and right are equal; otherwise the value false.

Explicit ​

static · 11 overloads

OverloadDescription
explicit operator sbyte(Number)staticConverts a Number to a sbyte value.
explicit operator byte(Number)staticConverts a Number to a byte value.
explicit operator short(Number)staticConverts a Number to a short value.
explicit operator ushort(Number)staticConverts a Number to a ushort value.
explicit operator int(Number)staticConverts a Number to a int value.
explicit operator uint(Number)staticConverts a Number to a uint value.
explicit operator long(Number)staticConverts a Number to a long value.
explicit operator ulong(Number)staticConverts a Number to a ulong value.
explicit operator float(Number)staticConverts a Number to a float value.
explicit operator double(Number)staticConverts a Number to a double value.
explicit operator decimal(Number)staticConverts a Number to a decimal value.

explicit operator sbyte(Number) ​

static

Converts a Number to a sbyte value.

csharp
public static explicit operator sbyte(Number value)
vbnet
Public Shared Narrowing Operator CType(value As Number) As SByte

Parameters

NameTypeDescription
valueNumberThe Number value.

Returns

SByte

The sbyte value of the value.

explicit operator byte(Number) ​

static

Converts a Number to a byte value.

csharp
public static explicit operator byte(Number value)
vbnet
Public Shared Narrowing Operator CType(value As Number) As Byte

Parameters

NameTypeDescription
valueNumberThe Number value.

Returns

Byte

The byte value of the value.

explicit operator short(Number) ​

static

Converts a Number to a short value.

csharp
public static explicit operator short(Number value)
vbnet
Public Shared Narrowing Operator CType(value As Number) As Short

Parameters

NameTypeDescription
valueNumberThe Number value.

Returns

Int16

The short value of the value.

explicit operator ushort(Number) ​

static

Converts a Number to a ushort value.

csharp
public static explicit operator ushort(Number value)
vbnet
Public Shared Narrowing Operator CType(value As Number) As UShort

Parameters

NameTypeDescription
valueNumberThe Number value.

Returns

UInt16

The ushort value of the value.

explicit operator int(Number) ​

static

Converts a Number to a int value.

csharp
public static explicit operator int(Number value)
vbnet
Public Shared Narrowing Operator CType(value As Number) As Integer

Parameters

NameTypeDescription
valueNumberThe Number value.

Returns

Int32

The int value of the value.

explicit operator uint(Number) ​

static

Converts a Number to a uint value.

csharp
public static explicit operator uint(Number value)
vbnet
Public Shared Narrowing Operator CType(value As Number) As UInteger

Parameters

NameTypeDescription
valueNumberThe Number value.

Returns

UInt32

The uint value of the value.

explicit operator long(Number) ​

static

Converts a Number to a long value.

csharp
public static explicit operator long(Number value)
vbnet
Public Shared Narrowing Operator CType(value As Number) As Long

Parameters

NameTypeDescription
valueNumberThe Number value.

Returns

Int64

The long value of the value.

explicit operator ulong(Number) ​

static

Converts a Number to a ulong value.

csharp
public static explicit operator ulong(Number value)
vbnet
Public Shared Narrowing Operator CType(value As Number) As ULong

Parameters

NameTypeDescription
valueNumberThe Number value.

Returns

UInt64

The ulong value of the value.

explicit operator float(Number) ​

static

Converts a Number to a float value.

csharp
public static explicit operator float(Number value)
vbnet
Public Shared Narrowing Operator CType(value As Number) As Single

Parameters

NameTypeDescription
valueNumberThe Number value.

Returns

Single

The float value of the value.

explicit operator double(Number) ​

static

Converts a Number to a double value.

csharp
public static explicit operator double(Number value)
vbnet
Public Shared Narrowing Operator CType(value As Number) As Double

Parameters

NameTypeDescription
valueNumberThe Number value.

Returns

Double

The double value of the value.

explicit operator decimal(Number) ​

static

Converts a Number to a decimal value.

csharp
public static explicit operator decimal(Number value)
vbnet
Public Shared Narrowing Operator CType(value As Number) As Decimal

Parameters

NameTypeDescription
valueNumberThe Number value.

Returns

Decimal

The decimal value of the value.

GreaterThan ​

static

Determines whether the first specified Number value is greater than the second specified Number value.

csharp
public static bool operator >(Number left, Number right)
vbnet
Public Shared Operator >(left As Number, right As Number) As Boolean

Parameters

NameTypeDescription
leftNumberThe first Number value.
rightNumberThe second Number value.

Returns

Boolean

The value true if left is greater than right; otherwise, false.

GreaterThanOrEqual ​

static

Determines whether the first specified Number value is greater than or equal to the second specified Number value.

csharp
public static bool operator >=(Number left, Number right)
vbnet
Public Shared Operator >=(left As Number, right As Number) As Boolean

Parameters

NameTypeDescription
leftNumberThe first Number value.
rightNumberThe second Number value.

Returns

Boolean

The value true if left is greater than or equal to right; otherwise, false.

Implicit ​

static · 11 overloads

OverloadDescription
implicit operator Number(sbyte)staticConverts a sbyte to a Number value.
implicit operator Number(byte)staticConverts a byte to a Number value.
implicit operator Number(short)staticConverts a short to a Number value.
implicit operator Number(ushort)staticConverts a ushort to a Number value.
implicit operator Number(int)staticConverts a int to a Number value.
implicit operator Number(uint)staticConverts a uint to a Number value.
implicit operator Number(long)staticConverts a long to a Number value.
implicit operator Number(ulong)staticConverts a ulong to a Number value.
implicit operator Number(float)staticConverts a float to a Number value.
implicit operator Number(double)staticConverts a double to a Number value.
implicit operator Number(decimal)staticConverts a decimal to a Number value.

implicit operator Number(sbyte) ​

static

Converts a sbyte to a Number value.

csharp
public static implicit operator Number(sbyte value)
vbnet
Public Shared Widening Operator CType(value As SByte) As Number

Parameters

NameTypeDescription
valueSByteThe sbyte value.

Returns

Number

The Number value from the value.

implicit operator Number(byte) ​

static

Converts a byte to a Number value.

csharp
public static implicit operator Number(byte value)
vbnet
Public Shared Widening Operator CType(value As Byte) As Number

Parameters

NameTypeDescription
valueByteThe byte value.

Returns

Number

The Number value from the value.

implicit operator Number(short) ​

static

Converts a short to a Number value.

csharp
public static implicit operator Number(short value)
vbnet
Public Shared Widening Operator CType(value As Short) As Number

Parameters

NameTypeDescription
valueInt16The short value.

Returns

Number

The Number value from the value.

implicit operator Number(ushort) ​

static

Converts a ushort to a Number value.

csharp
public static implicit operator Number(ushort value)
vbnet
Public Shared Widening Operator CType(value As UShort) As Number

Parameters

NameTypeDescription
valueUInt16The ushort value.

Returns

Number

The Number value from the value.

implicit operator Number(int) ​

static

Converts a int to a Number value.

csharp
public static implicit operator Number(int value)
vbnet
Public Shared Widening Operator CType(value As Integer) As Number

Parameters

NameTypeDescription
valueInt32The int value.

Returns

Number

The Number value from the value.

implicit operator Number(uint) ​

static

Converts a uint to a Number value.

csharp
public static implicit operator Number(uint value)
vbnet
Public Shared Widening Operator CType(value As UInteger) As Number

Parameters

NameTypeDescription
valueUInt32The uint value.

Returns

Number

The Number value from the value.

implicit operator Number(long) ​

static

Converts a long to a Number value.

csharp
public static implicit operator Number(long value)
vbnet
Public Shared Widening Operator CType(value As Long) As Number

Parameters

NameTypeDescription
valueInt64The long value.

Returns

Number

The Number value from the value.

implicit operator Number(ulong) ​

static

Converts a ulong to a Number value.

csharp
public static implicit operator Number(ulong value)
vbnet
Public Shared Widening Operator CType(value As ULong) As Number

Parameters

NameTypeDescription
valueUInt64The ulong value.

Returns

Number

The Number value from the value.

implicit operator Number(float) ​

static

Converts a float to a Number value.

csharp
public static implicit operator Number(float value)
vbnet
Public Shared Widening Operator CType(value As Single) As Number

Parameters

NameTypeDescription
valueSingleThe float value.

Returns

Number

The Number value from the value.

implicit operator Number(double) ​

static

Converts a double to a Number value.

csharp
public static implicit operator Number(double value)
vbnet
Public Shared Widening Operator CType(value As Double) As Number

Parameters

NameTypeDescription
valueDoubleThe double value.

Returns

Number

The Number value from the value.

implicit operator Number(decimal) ​

static

Converts a decimal to a Number value.

csharp
public static implicit operator Number(decimal value)
vbnet
Public Shared Widening Operator CType(value As Decimal) As Number

Parameters

NameTypeDescription
valueDecimalThe decimal value.

Returns

Number

The Number value from the value.

Inequality ​

static

Returns a value indicating whether two values of Number are not equal.

csharp
public static bool operator !=(Number left, Number right)
vbnet
Public Shared Operator <>(left As Number, right As Number) As Boolean

Parameters

NameTypeDescription
leftNumberThe first Number to compare.
rightNumberThe second Number to compare.

Returns

Boolean

The value true if left and right are not equal; otherwise the value false.

LessThan ​

static

Determines whether the first specified Number value is less than the second specified Number value.

csharp
public static bool operator <(Number left, Number right)
vbnet
Public Shared Operator <(left As Number, right As Number) As Boolean

Parameters

NameTypeDescription
leftNumberThe first Number value.
rightNumberThe second Number value.

Returns

Boolean

The value true if left is less than right; otherwise the value false.

LessThanOrEqual ​

static

Determines whether the first specified Number value is less than or equal to the second Number value.

csharp
public static bool operator <=(Number left, Number right)
vbnet
Public Shared Operator <=(left As Number, right As Number) As Boolean

Parameters

NameTypeDescription
leftNumberThe first Number value.
rightNumberThe second Number value.

Returns

Boolean

The value true if left is less than or equal to right; otherwise the value false.