UInt16

Overview

Unsigned 16 bits integer type.

Location

Implements

 

constructor    (declared in Object) UIKit for Mac

Default constructor.

 

constructor

 

UInt16()

 

init()

 

UInt16()

 

Sub New()

CompareTo (Object): Int32

Compares this value to another value, returns 0 if equal, -1 if less, 1 if more

 

method CompareTo(a: Object): Int32

 

Int32 CompareTo(Object a)

 

func CompareTo(_ a: Object) -> Int32

 

Int32 CompareTo(Object a)

 

Function CompareTo(a As Object) As Int32

Parameters:

  • a:

CompareTo (UInt16): Int32

Compares this value to another value, returns 0 if equal, -1 if less, 1 if more

 

method CompareTo(a: UInt16): Int32

 

Int32 CompareTo(UInt16 a)

 

func CompareTo(_ a: UInt16) -> Int32

 

Int32 CompareTo(UInt16 a)

 

Function CompareTo(a As UInt16) As Int32

Parameters:

  • a:

Equals (Object): Boolean  virtual    (declared in Object) Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther:

Equals (Object): Boolean  override virtual

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj:

Equals (UInt16): Boolean

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(other: UInt16): Boolean

 

Boolean Equals(UInt16 other)

 

func Equals(_ other: UInt16) -> Boolean

 

Boolean Equals(UInt16 other)

 

Function Equals(other As UInt16) As Boolean

Parameters:

  • other:

Equals (Object): Boolean  virtual    (declared in Object) UIKit for Mac

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object) UIKit for Mac

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

Finalize()

 

func Finalize()

 

Finalize()

 

Sub Finalize()

GetHashCode  override virtual

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

MaxValue

Maximum value for this type.

 

const MaxValue: UInt16 = 65535;

 

const UInt16 MaxValue = 65535

 

static let MaxValue: UInt16 = 65535

 

static final UInt16 MaxValue = 65535

 

Dim MaxValue As UInt16 = 65535

MinValue

Minimum value for this type.

 

const MinValue: UInt16 = 0;

 

const UInt16 MinValue = 0

 

static let MinValue: UInt16 = 0

 

static final UInt16 MinValue = 0

 

Dim MinValue As UInt16 = 0

Parse

Parses an uint16 value from a string. Returns the if succesful, else throws an exception.

 

class method Parse(s: String): UInt16

 

static UInt16 Parse(String s)

 

static func Parse(_ s: String) -> UInt16

 

static UInt16 Parse(String s)

 

Shared Function Parse(s As String) As UInt16

Parameters:

  • s:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

ToString  override virtual

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String

TryParse

Parses an uint16 value from a string. Returns true if succesful.

 

class method TryParse(s: String; out Value: UInt16): Boolean

 

static Boolean TryParse(String s, out UInt16 Value)

 

static func TryParse(_ s: String, _ Value: UInt16) -> Boolean

 

static Boolean TryParse(String s, __out UInt16 Value)

 

Shared Function TryParse(s As String, <OutAttribute> ByRef Value As UInt16) As Boolean

Parameters:

  • s:
  • Value:

 

MaxValue

Maximum value for this type.

 

const MaxValue: UInt16 = 65535;

 

const UInt16 MaxValue = 65535

 

static let MaxValue: UInt16 = 65535

 

static final UInt16 MaxValue = 65535

 

Dim MaxValue As UInt16 = 65535

MinValue

Minimum value for this type.

 

const MinValue: UInt16 = 0;

 

const UInt16 MinValue = 0

 

static let MinValue: UInt16 = 0

 

static final UInt16 MinValue = 0

 

Dim MinValue As UInt16 = 0

 

Parse

Parses an uint16 value from a string. Returns the if succesful, else throws an exception.

 

class method Parse(s: String): UInt16

 

static UInt16 Parse(String s)

 

static func Parse(_ s: String) -> UInt16

 

static UInt16 Parse(String s)

 

Shared Function Parse(s As String) As UInt16

Parameters:

  • s:

ReferenceEquals    (declared in Object)

Compares two references for equivalence (even if they have an equals operator)

 

class method ReferenceEquals(a: Object; b: Object): Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

static func ReferenceEquals(_ a: Object, _ b: Object) -> Boolean

 

static Boolean ReferenceEquals(Object a, Object b)

 

Shared Function ReferenceEquals(a As Object, b As Object) As Boolean

Parameters:

  • a: left value
  • b: right value

TryParse

Parses an uint16 value from a string. Returns true if succesful.

 

class method TryParse(s: String; out Value: UInt16): Boolean

 

static Boolean TryParse(String s, out UInt16 Value)

 

static func TryParse(_ s: String, _ Value: UInt16) -> Boolean

 

static Boolean TryParse(String s, __out UInt16 Value)

 

Shared Function TryParse(s As String, <OutAttribute> ByRef Value As UInt16) As Boolean

Parameters:

  • s:
  • Value:

 

constructor    (declared in Object) UIKit for Mac

Default constructor.

 

constructor

 

UInt16()

 

init()

 

UInt16()

 

Sub New()

CompareTo (Object): Int32

Compares this value to another value, returns 0 if equal, -1 if less, 1 if more

 

method CompareTo(a: Object): Int32

 

Int32 CompareTo(Object a)

 

func CompareTo(_ a: Object) -> Int32

 

Int32 CompareTo(Object a)

 

Function CompareTo(a As Object) As Int32

Parameters:

  • a:

CompareTo (UInt16): Int32

Compares this value to another value, returns 0 if equal, -1 if less, 1 if more

 

method CompareTo(a: UInt16): Int32

 

Int32 CompareTo(UInt16 a)

 

func CompareTo(_ a: UInt16) -> Int32

 

Int32 CompareTo(UInt16 a)

 

Function CompareTo(a As UInt16) As Int32

Parameters:

  • a:

Equals (Object): Boolean  virtual    (declared in Object) Android, iOS, iOS Simulator, Mac Catalyst, macOS, tvOS, tvOS Simulator, Ubuntu, watchOS, watchOS Simulator, WebAssembly, Windows

 

method Equals(aOther: Object): Boolean

 

Boolean Equals(Object aOther)

 

func Equals(_ aOther: Object) -> Boolean

 

Boolean Equals(Object aOther)

 

Function Equals(aOther As Object) As Boolean

Parameters:

  • aOther:

Equals (Object): Boolean  override virtual

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj:

Equals (UInt16): Boolean

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(other: UInt16): Boolean

 

Boolean Equals(UInt16 other)

 

func Equals(_ other: UInt16) -> Boolean

 

Boolean Equals(UInt16 other)

 

Function Equals(other As UInt16) As Boolean

Parameters:

  • other:

Equals (Object): Boolean  virtual    (declared in Object) UIKit for Mac

Returns true if the target object matches this one, by default compares the reference.

 

method Equals(obj: Object): Boolean

 

Boolean Equals(Object obj)

 

func Equals(_ obj: Object) -> Boolean

 

Boolean Equals(Object obj)

 

Function Equals(obj As Object) As Boolean

Parameters:

  • obj: the reference to compare this with.

Finalize  protected virtual    (declared in Object) UIKit for Mac

Finalizer implementation. If not overriden it's not called at all, the runtime checks if there is an override before calling a finalizer.

 

method Finalize

 

Finalize()

 

func Finalize()

 

Finalize()

 

Sub Finalize()

GetHashCode  override virtual

Returns a hashcode for this object. Overriden implementations should make sure that the number returned here is constant given the same object.

 

method GetHashCode: Int32

 

Int32 GetHashCode()

 

func GetHashCode() -> Int32

 

Int32 GetHashCode()

 

Function GetHashCode() As Int32

GetType    (declared in Object)

Returns the actual type of this class

 

method GetType: Type

 

Type GetType()

 

func GetType() -> Type

 

Type GetType()

 

Function GetType() As Type

ToString  override virtual

Gets the string representation of this method.

 

method ToString: String

 

String ToString()

 

func ToString() -> String

 

String ToString()

 

Function ToString() As String