Convert

Overview

Converter class to convert 1 type to another

Location

  • Reference:
    • Elements.dll  .NET, .NET Core 6.0, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2

Class Methods


Base32StringToByteArray .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2

 

class method Base32StringToByteArray(S: String): array of Byte

 

static Byte[] Base32StringToByteArray(String S)

 

static func Base32StringToByteArray(_ S: String) -> Byte...

 

Shared Function Base32StringToByteArray(S As String) As Byte()

Parameters:

  • S:

Base64StringToByteArray

Convert a base 64 string to it's byte array equivalent.

 

class method Base64StringToByteArray(S: String): array of Byte

 

static Byte[] Base64StringToByteArray(String S)

 

static func Base64StringToByteArray(_ S: String) -> Byte...

 

static Byte[] Base64StringToByteArray(String S)

 

Shared Function Base64StringToByteArray(S As String) As Byte()

Parameters:

  • S:

HexStringToByteArray

Convert a hexadecimal string to it's byte array equivalent.

 

class method HexStringToByteArray(aData: not nullable String): array of Byte

 

static Byte[] HexStringToByteArray(String! aData)

 

static func HexStringToByteArray(_ aData: String) -> Byte...

 

static Byte[] HexStringToByteArray(String aData)

 

Shared Function HexStringToByteArray(aData As String) As Byte()

Parameters:

  • aData:

HexStringToUInt32

Convert a hexadecimal string to an uint32.

 

class method HexStringToUInt32(aValue: not nullable String): UInt32

 

static UInt32 HexStringToUInt32(String! aValue)

 

static func HexStringToUInt32(_ aValue: String) -> UInt32

 

static Cardinal HexStringToUInt32(String aValue)

 

Shared Function HexStringToUInt32(aValue As String) As UInt32

Parameters:

  • aValue:

HexStringToUInt64

Convert a hexadecimal string to an uint64.

 

class method HexStringToUInt64(aValue: not nullable String): UInt64

 

static UInt64 HexStringToUInt64(String! aValue)

 

static func HexStringToUInt64(_ aValue: String) -> UInt64

 

static UInt64 HexStringToUInt64(String aValue)

 

Shared Function HexStringToUInt64(aValue As String) As UInt64

Parameters:

  • aValue:

initialize ToffeeV2

 

static func initialize()

initialize initialize() Toffee

 

static func initialize(initialize )

Parameters:

  • :

MemorySizeToString .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2

 

class method MemorySizeToString(aSize: UInt64): String

 

static String MemorySizeToString(UInt64 aSize)

 

static func MemorySizeToString(_ aSize: UInt64) -> String

 

Shared Function MemorySizeToString(aSize As UInt64) As String

Parameters:

  • aSize:

MillisecondsToTimeString

 

class method MillisecondsToTimeString(aMS: Double): String

 

static String MillisecondsToTimeString(Double aMS)

 

static func MillisecondsToTimeString(_ aMS: Double) -> String

 

static String MillisecondsToTimeString(Double aMS)

 

Shared Function MillisecondsToTimeString(aMS As Double) As String

Parameters:

  • aMS:

ToAsciiString (array of Byte): not nullable String

 

class method ToAsciiString(aData: array of Byte): not nullable String

 

static String! ToAsciiString(Byte[] aData)

 

static func ToAsciiString(_ aData: Byte...) -> String

 

static String ToAsciiString(Byte[] aData)

 

Shared Function ToAsciiString(aData As Byte()) As String

Parameters:

  • aData:

ToAsciiString (array of Byte, Int32, Int32): not nullable String

 

class method ToAsciiString(aData: array of Byte; aOffset: Int32; aCount: Int32): not nullable String

 

static String! ToAsciiString(Byte[] aData, Int32 aOffset, Int32 aCount)

 

static func ToAsciiString(_ aData: Byte..., _ aOffset: Int32, _ aCount: Int32) -> String

 

static String ToAsciiString(Byte[] aData, Integer aOffset, Integer aCount)

 

Shared Function ToAsciiString(aData As Byte(), aOffset As Int32, aCount As Int32) As String

Parameters:

  • aData:
  • aOffset:
  • aCount:

ToBase32String (array of Byte): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2

 

class method ToBase32String(S: array of Byte): not nullable String

 

static String! ToBase32String(Byte[] S)

 

static func ToBase32String(_ S: Byte...) -> String

 

Shared Function ToBase32String(S As Byte()) As String

Parameters:

  • S:

ToBase32String (array of Byte, Int32, Int32): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2

 

class method ToBase32String(S: array of Byte; aStartIndex: Int32; aLength: Int32): not nullable String

 

static String! ToBase32String(Byte[] S, Int32 aStartIndex, Int32 aLength)

 

static func ToBase32String(_ S: Byte..., _ aStartIndex: Int32, _ aLength: Int32) -> String

 

Shared Function ToBase32String(S As Byte(), aStartIndex As Int32, aLength As Int32) As String

Parameters:

  • S:
  • aStartIndex:
  • aLength:

ToBase64String (array of Byte): not nullable String

 

class method ToBase64String(S: array of Byte): not nullable String

 

static String! ToBase64String(Byte[] S)

 

static func ToBase64String(_ S: Byte...) -> String

 

static String ToBase64String(Byte[] S)

 

Shared Function ToBase64String(S As Byte()) As String

Parameters:

  • S:

ToBase64String (array of Byte, Int32, Int32): not nullable String

Convert a byte array to a base64 string.

 

class method ToBase64String(S: array of Byte; aStartIndex: Int32; aLength: Int32): not nullable String

 

static String! ToBase64String(Byte[] S, Int32 aStartIndex, Int32 aLength)

 

static func ToBase64String(_ S: Byte..., _ aStartIndex: Int32, _ aLength: Int32) -> String

 

static String ToBase64String(Byte[] S, Integer aStartIndex, Integer aLength)

 

Shared Function ToBase64String(S As Byte(), aStartIndex As Int32, aLength As Int32) As String

Parameters:

  • S:
  • aStartIndex:
  • aLength:

ToBinaryString

Convert a number to a binary number string, (1/0's ) of at least aWidth width.

 

class method ToBinaryString(aValue: UInt64; aWidth: Int32): not nullable String

 

static String! ToBinaryString(UInt64 aValue, Int32 aWidth)

 

static func ToBinaryString(_ aValue: UInt64, _ aWidth: Int32) -> String

 

static String ToBinaryString(UInt64 aValue, Integer aWidth)

 

Shared Function ToBinaryString(aValue As UInt64, aWidth As Int32) As String

Parameters:

  • aValue:
  • aWidth:

ToBoolean (Double): Boolean

Convert a double to a boolean.

 

class method ToBoolean(aValue: Double): Boolean

 

static Boolean ToBoolean(Double aValue)

 

static func ToBoolean(_ aValue: Double) -> Boolean

 

static Boolean ToBoolean(Double aValue)

 

Shared Function ToBoolean(aValue As Double) As Boolean

Parameters:

  • aValue:

ToBoolean (Int32): Boolean

Convert an int32 to a boolean.

 

class method ToBoolean(aValue: Int32): Boolean

 

static Boolean ToBoolean(Int32 aValue)

 

static func ToBoolean(_ aValue: Int32) -> Boolean

 

static Boolean ToBoolean(Integer aValue)

 

Shared Function ToBoolean(aValue As Int32) As Boolean

Parameters:

  • aValue:

ToBoolean (Int64): Boolean

Convert an int64 to a boolean.

 

class method ToBoolean(aValue: Int64): Boolean

 

static Boolean ToBoolean(Int64 aValue)

 

static func ToBoolean(_ aValue: Int64) -> Boolean

 

static Boolean ToBoolean(Int64 aValue)

 

Shared Function ToBoolean(aValue As Int64) As Boolean

Parameters:

  • aValue:

ToBoolean (not nullable String): Boolean

Convert a string to a boolean.

 

class method ToBoolean(aValue: not nullable String): Boolean

 

static Boolean ToBoolean(String! aValue)

 

static func ToBoolean(_ aValue: String) -> Boolean

 

static Boolean ToBoolean(String aValue)

 

Shared Function ToBoolean(aValue As String) As Boolean

Parameters:

  • aValue:

ToBoolean (Byte): Boolean

Convert a byte to a boolean.

 

class method ToBoolean(aValue: Byte): Boolean

 

static Boolean ToBoolean(Byte aValue)

 

static func ToBoolean(_ aValue: Byte) -> Boolean

 

static Boolean ToBoolean(Byte aValue)

 

Shared Function ToBoolean(aValue As Byte) As Boolean

Parameters:

  • aValue:

ToByte (Boolean): Byte

Convert a boolean to a byte.

 

class method ToByte(aValue: Boolean): Byte

 

static Byte ToByte(Boolean aValue)

 

static func ToByte(_ aValue: Boolean) -> Byte

 

static Byte ToByte(Boolean aValue)

 

Shared Function ToByte(aValue As Boolean) As Byte

Parameters:

  • aValue:

ToByte (Char): Byte

Convert a char to a byte.

 

class method ToByte(aValue: Char): Byte

 

static Byte ToByte(Char aValue)

 

static func ToByte(_ aValue: Char) -> Byte

 

static Byte ToByte(Char aValue)

 

Shared Function ToByte(aValue As Char) As Byte

Parameters:

  • aValue:

ToByte (Double): Byte

Convert a double to a byte.

 

class method ToByte(aValue: Double): Byte

 

static Byte ToByte(Double aValue)

 

static func ToByte(_ aValue: Double) -> Byte

 

static Byte ToByte(Double aValue)

 

Shared Function ToByte(aValue As Double) As Byte

Parameters:

  • aValue:

ToByte (Int32): Byte

Convert an int32 to a byte.

 

class method ToByte(aValue: Int32): Byte

 

static Byte ToByte(Int32 aValue)

 

static func ToByte(_ aValue: Int32) -> Byte

 

static Byte ToByte(Integer aValue)

 

Shared Function ToByte(aValue As Int32) As Byte

Parameters:

  • aValue:

ToByte (Int64): Byte

Convert an int64 to a byte.

 

class method ToByte(aValue: Int64): Byte

 

static Byte ToByte(Int64 aValue)

 

static func ToByte(_ aValue: Int64) -> Byte

 

static Byte ToByte(Int64 aValue)

 

Shared Function ToByte(aValue As Int64) As Byte

Parameters:

  • aValue:

ToByte (not nullable String): Byte

Convert a string to a byte.

 

class method ToByte(aValue: not nullable String): Byte

 

static Byte ToByte(String! aValue)

 

static func ToByte(_ aValue: String) -> Byte

 

static Byte ToByte(String aValue)

 

Shared Function ToByte(aValue As String) As Byte

Parameters:

  • aValue:

ToChar (Boolean): Char

Convert a boolean to a char.

 

class method ToChar(aValue: Boolean): Char

 

static Char ToChar(Boolean aValue)

 

static func ToChar(_ aValue: Boolean) -> Char

 

static Char ToChar(Boolean aValue)

 

Shared Function ToChar(aValue As Boolean) As Char

Parameters:

  • aValue:

ToChar (Int32): Char

Convert an int32 to a char.

 

class method ToChar(aValue: Int32): Char

 

static Char ToChar(Int32 aValue)

 

static func ToChar(_ aValue: Int32) -> Char

 

static Char ToChar(Integer aValue)

 

Shared Function ToChar(aValue As Int32) As Char

Parameters:

  • aValue:

ToChar (Int64): Char

Convert an int64 to a char.

 

class method ToChar(aValue: Int64): Char

 

static Char ToChar(Int64 aValue)

 

static func ToChar(_ aValue: Int64) -> Char

 

static Char ToChar(Int64 aValue)

 

Shared Function ToChar(aValue As Int64) As Char

Parameters:

  • aValue:

ToChar (not nullable String): Char

Convert a string to a char.

 

class method ToChar(aValue: not nullable String): Char

 

static Char ToChar(String! aValue)

 

static func ToChar(_ aValue: String) -> Char

 

static Char ToChar(String aValue)

 

Shared Function ToChar(aValue As String) As Char

Parameters:

  • aValue:

ToChar (Byte): Char

Convert a byte to a char.

 

class method ToChar(aValue: Byte): Char

 

static Char ToChar(Byte aValue)

 

static func ToChar(_ aValue: Byte) -> Char

 

static Char ToChar(Byte aValue)

 

Shared Function ToChar(aValue As Byte) As Char

Parameters:

  • aValue:

ToDouble (Boolean): Double

Convert a boolean to a double.

 

class method ToDouble(aValue: Boolean): Double

 

static Double ToDouble(Boolean aValue)

 

static func ToDouble(_ aValue: Boolean) -> Double

 

static Double ToDouble(Boolean aValue)

 

Shared Function ToDouble(aValue As Boolean) As Double

Parameters:

  • aValue:

ToDouble (Int32): Double

Convert an int32 to a double.

 

class method ToDouble(aValue: Int32): Double

 

static Double ToDouble(Int32 aValue)

 

static func ToDouble(_ aValue: Int32) -> Double

 

static Double ToDouble(Integer aValue)

 

Shared Function ToDouble(aValue As Int32) As Double

Parameters:

  • aValue:

ToDouble (Int64): Double

Convert an int64 to a double.

 

class method ToDouble(aValue: Int64): Double

 

static Double ToDouble(Int64 aValue)

 

static func ToDouble(_ aValue: Int64) -> Double

 

static Double ToDouble(Int64 aValue)

 

Shared Function ToDouble(aValue As Int64) As Double

Parameters:

  • aValue:

ToDouble (not nullable String, Locale): Double

Convert a string to a double, given a locale.

 

class method ToDouble(aValue: not nullable String; aLocale: Locale): Double

 

static Double ToDouble(String! aValue, Locale aLocale)

 

static func ToDouble(_ aValue: String, _ aLocale: Locale) -> Double

 

static Double ToDouble(String aValue, Locale aLocale)

 

Shared Function ToDouble(aValue As String, aLocale As Locale) As Double

Parameters:

  • aValue:
  • aLocale:

ToDouble (Byte): Double

Convert a byte to a double.

 

class method ToDouble(aValue: Byte): Double

 

static Double ToDouble(Byte aValue)

 

static func ToDouble(_ aValue: Byte) -> Double

 

static Double ToDouble(Byte aValue)

 

Shared Function ToDouble(aValue As Byte) As Double

Parameters:

  • aValue:

ToDoubleInvariant

Convert an string to a double, in the invariant culture.

 

class method ToDoubleInvariant(aValue: not nullable String): Double

 

static Double ToDoubleInvariant(String! aValue)

 

static func ToDoubleInvariant(_ aValue: String) -> Double

 

static Double ToDoubleInvariant(String aValue)

 

Shared Function ToDoubleInvariant(aValue As String) As Double

Parameters:

  • aValue:

ToHexString (array of Byte, Int32, String, Int32): not nullable String

 

class method ToHexString(aData: array of Byte; aCount: Int32; aSpacer: String; aBytesPerLine: Int32): not nullable String

 

static String! ToHexString(Byte[] aData, Int32 aCount, String aSpacer, Int32 aBytesPerLine)

 

static func ToHexString(_ aData: Byte..., _ aCount: Int32, _ aSpacer: String, _ aBytesPerLine: Int32) -> String

 

static String ToHexString(Byte[] aData, Integer aCount, String aSpacer, Integer aBytesPerLine)

 

Shared Function ToHexString(aData As Byte(), aCount As Int32, aSpacer As String, aBytesPerLine As Int32) As String

Parameters:

  • aData:
  • aCount:
  • aSpacer:
  • aBytesPerLine:

ToHexString (array of Byte, Int32, Int32, String, Int32): not nullable String

 

class method ToHexString(aData: array of Byte; aOffset: Int32; aCount: Int32; aSpacer: String; aBytesPerLine: Int32): not nullable String

 

static String! ToHexString(Byte[] aData, Int32 aOffset, Int32 aCount, String aSpacer, Int32 aBytesPerLine)

 

static func ToHexString(_ aData: Byte..., _ aOffset: Int32, _ aCount: Int32, _ aSpacer: String, _ aBytesPerLine: Int32) -> String

 

static String ToHexString(Byte[] aData, Integer aOffset, Integer aCount, String aSpacer, Integer aBytesPerLine)

 

Shared Function ToHexString(aData As Byte(), aOffset As Int32, aCount As Int32, aSpacer As String, aBytesPerLine As Int32) As String

Parameters:

  • aData:
  • aOffset:
  • aCount:
  • aSpacer:
  • aBytesPerLine:

ToHexString (array of Byte, String, Int32): not nullable String

 

class method ToHexString(aData: array of Byte; aSpacer: String; aBytesPerLine: Int32): not nullable String

 

static String! ToHexString(Byte[] aData, String aSpacer, Int32 aBytesPerLine)

 

static func ToHexString(_ aData: Byte..., _ aSpacer: String, _ aBytesPerLine: Int32) -> String

 

static String ToHexString(Byte[] aData, String aSpacer, Integer aBytesPerLine)

 

Shared Function ToHexString(aData As Byte(), aSpacer As String, aBytesPerLine As Int32) As String

Parameters:

  • aData:
  • aSpacer:
  • aBytesPerLine:

ToHexString (ImmutableBinary, String, Int32): not nullable String

 

class method ToHexString(aData: ImmutableBinary; aSpacer: String; aBytesPerLine: Int32): not nullable String

 

static String! ToHexString(ImmutableBinary aData, String aSpacer, Int32 aBytesPerLine)

 

static func ToHexString(_ aData: ImmutableBinary, _ aSpacer: String, _ aBytesPerLine: Int32) -> String

 

static String ToHexString(ImmutableBinary aData, String aSpacer, Integer aBytesPerLine)

 

Shared Function ToHexString(aData As ImmutableBinary, aSpacer As String, aBytesPerLine As Int32) As String

Parameters:

  • aData:
  • aSpacer:
  • aBytesPerLine:

ToHexString (UInt64, Int32): not nullable String

Convert an uint64 to a hex string.

 

class method ToHexString(aValue: UInt64; aWidth: Int32): not nullable String

 

static String! ToHexString(UInt64 aValue, Int32 aWidth)

 

static func ToHexString(_ aValue: UInt64, _ aWidth: Int32) -> String

 

static String ToHexString(UInt64 aValue, Integer aWidth)

 

Shared Function ToHexString(aValue As UInt64, aWidth As Int32) As String

Parameters:

  • aValue:
  • aWidth:

ToInt32 (Boolean): Int32

Convert a boolean to an integer.

 

class method ToInt32(aValue: Boolean): Int32

 

static Int32 ToInt32(Boolean aValue)

 

static func ToInt32(_ aValue: Boolean) -> Int32

 

static Integer ToInt32(Boolean aValue)

 

Shared Function ToInt32(aValue As Boolean) As Int32

Parameters:

  • aValue:

ToInt32 (Char): Int32

Convert a char to an integer.

 

class method ToInt32(aValue: Char): Int32

 

static Int32 ToInt32(Char aValue)

 

static func ToInt32(_ aValue: Char) -> Int32

 

static Integer ToInt32(Char aValue)

 

Shared Function ToInt32(aValue As Char) As Int32

Parameters:

  • aValue:

ToInt32 (Double): Int32

Convert a double to an integer.

 

class method ToInt32(aValue: Double): Int32

 

static Int32 ToInt32(Double aValue)

 

static func ToInt32(_ aValue: Double) -> Int32

 

static Integer ToInt32(Double aValue)

 

Shared Function ToInt32(aValue As Double) As Int32

Parameters:

  • aValue:

ToInt32 (Int64): Int32

Convert an int64 to an integer.

 

class method ToInt32(aValue: Int64): Int32

 

static Int32 ToInt32(Int64 aValue)

 

static func ToInt32(_ aValue: Int64) -> Int32

 

static Integer ToInt32(Int64 aValue)

 

Shared Function ToInt32(aValue As Int64) As Int32

Parameters:

  • aValue:

ToInt32 (not nullable String): Int32

Convert a string to an integer.

 

class method ToInt32(aValue: not nullable String): Int32

 

static Int32 ToInt32(String! aValue)

 

static func ToInt32(_ aValue: String) -> Int32

 

static Integer ToInt32(String aValue)

 

Shared Function ToInt32(aValue As String) As Int32

Parameters:

  • aValue:

ToInt32 (Byte): Int32

Convert a byte to an integer.

 

class method ToInt32(aValue: Byte): Int32

 

static Int32 ToInt32(Byte aValue)

 

static func ToInt32(_ aValue: Byte) -> Int32

 

static Integer ToInt32(Byte aValue)

 

Shared Function ToInt32(aValue As Byte) As Int32

Parameters:

  • aValue:

ToInt64 (Boolean): Int64

Convert a boolean to an integer.

 

class method ToInt64(aValue: Boolean): Int64

 

static Int64 ToInt64(Boolean aValue)

 

static func ToInt64(_ aValue: Boolean) -> Int64

 

static Int64 ToInt64(Boolean aValue)

 

Shared Function ToInt64(aValue As Boolean) As Int64

Parameters:

  • aValue:

ToInt64 (Char): Int64

Convert a char to an integer.

 

class method ToInt64(aValue: Char): Int64

 

static Int64 ToInt64(Char aValue)

 

static func ToInt64(_ aValue: Char) -> Int64

 

static Int64 ToInt64(Char aValue)

 

Shared Function ToInt64(aValue As Char) As Int64

Parameters:

  • aValue:

ToInt64 (Double): Int64

Convert a double to an integer.

 

class method ToInt64(aValue: Double): Int64

 

static Int64 ToInt64(Double aValue)

 

static func ToInt64(_ aValue: Double) -> Int64

 

static Int64 ToInt64(Double aValue)

 

Shared Function ToInt64(aValue As Double) As Int64

Parameters:

  • aValue:

ToInt64 (Int32): Int64

Convert a int32 to an integer.

 

class method ToInt64(aValue: Int32): Int64

 

static Int64 ToInt64(Int32 aValue)

 

static func ToInt64(_ aValue: Int32) -> Int64

 

static Int64 ToInt64(Integer aValue)

 

Shared Function ToInt64(aValue As Int32) As Int64

Parameters:

  • aValue:

ToInt64 (not nullable String): Int64

Convert a string to an integer.

 

class method ToInt64(aValue: not nullable String): Int64

 

static Int64 ToInt64(String! aValue)

 

static func ToInt64(_ aValue: String) -> Int64

 

static Int64 ToInt64(String aValue)

 

Shared Function ToInt64(aValue As String) As Int64

Parameters:

  • aValue:

ToInt64 (Byte): Int64

Convert a byte to an integer.

 

class method ToInt64(aValue: Byte): Int64

 

static Int64 ToInt64(Byte aValue)

 

static func ToInt64(_ aValue: Byte) -> Int64

 

static Int64 ToInt64(Byte aValue)

 

Shared Function ToInt64(aValue As Byte) As Int64

Parameters:

  • aValue:

ToOctalString

Convert an integer to it's octal equivalent as string.

 

class method ToOctalString(aValue: UInt64; aWidth: Int32): not nullable String

 

static String! ToOctalString(UInt64 aValue, Int32 aWidth)

 

static func ToOctalString(_ aValue: UInt64, _ aWidth: Int32) -> String

 

static String ToOctalString(UInt64 aValue, Integer aWidth)

 

Shared Function ToOctalString(aValue As UInt64, aWidth As Int32) As String

Parameters:

  • aValue:
  • aWidth:

ToString (Boolean): not nullable String

Convert a boolean to string.

 

class method ToString(aValue: Boolean): not nullable String

 

static String! ToString(Boolean aValue)

 

static func ToString(_ aValue: Boolean) -> String

 

static String ToString(Boolean aValue)

 

Shared Function ToString(aValue As Boolean) As String

Parameters:

  • aValue:

ToString (Char): not nullable String

Convert a char to string.

 

class method ToString(aValue: Char): not nullable String

 

static String! ToString(Char aValue)

 

static func ToString(_ aValue: Char) -> String

 

static String ToString(Char aValue)

 

Shared Function ToString(aValue As Char) As String

Parameters:

  • aValue:

ToString (Double, Int32, Int32, Locale): not nullable String

 

class method ToString(aValue: Double; aDigitsAfterDecimalPoint: Int32; aMinWidth: Int32; aLocale: Locale): not nullable String

 

static String! ToString(Double aValue, Int32 aDigitsAfterDecimalPoint, Int32 aMinWidth, Locale aLocale)

 

static func ToString(_ aValue: Double, _ aDigitsAfterDecimalPoint: Int32, _ aMinWidth: Int32, _ aLocale: Locale) -> String

 

static String ToString(Double aValue, Integer aDigitsAfterDecimalPoint, Integer aMinWidth, Locale aLocale)

 

Shared Function ToString(aValue As Double, aDigitsAfterDecimalPoint As Int32, aMinWidth As Int32, aLocale As Locale) As String

Parameters:

  • aValue:
  • aDigitsAfterDecimalPoint:
  • aMinWidth:
  • aLocale:

ToString (Int32, Int32): not nullable String

Convert an int32 to string.

 

class method ToString(aValue: Int32; aBase: Int32): not nullable String

 

static String! ToString(Int32 aValue, Int32 aBase)

 

static func ToString(_ aValue: Int32, _ aBase: Int32) -> String

 

static String ToString(Integer aValue, Integer aBase)

 

Shared Function ToString(aValue As Int32, aBase As Int32) As String

Parameters:

  • aValue:
  • aBase:

ToString (Int64, Int32): not nullable String

Convert an int64 to string.

 

class method ToString(aValue: Int64; aBase: Int32): not nullable String

 

static String! ToString(Int64 aValue, Int32 aBase)

 

static func ToString(_ aValue: Int64, _ aBase: Int32) -> String

 

static String ToString(Int64 aValue, Integer aBase)

 

Shared Function ToString(aValue As Int64, aBase As Int32) As String

Parameters:

  • aValue:
  • aBase:

ToString (Object): not nullable String

Convert an object to string.

 

class method ToString(aValue: Object): not nullable String

 

static String! ToString(Object aValue)

 

static func ToString(_ aValue: Object) -> String

 

static String ToString(Object aValue)

 

Shared Function ToString(aValue As Object) As String

Parameters:

  • aValue:

ToString (UInt64, Int32): not nullable String .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2

Convert an uint64 to string.

 

class method ToString(aValue: UInt64; aBase: Int32): not nullable String

 

static String! ToString(UInt64 aValue, Int32 aBase)

 

static func ToString(_ aValue: UInt64, _ aBase: Int32) -> String

 

Shared Function ToString(aValue As UInt64, aBase As Int32) As String

Parameters:

  • aValue:
  • aBase:

ToString (Byte, Int32): not nullable String

Convert a byte to string.

 

class method ToString(aValue: Byte; aBase: Int32): not nullable String

 

static String! ToString(Byte aValue, Int32 aBase)

 

static func ToString(_ aValue: Byte, _ aBase: Int32) -> String

 

static String ToString(Byte aValue, Integer aBase)

 

Shared Function ToString(aValue As Byte, aBase As Int32) As String

Parameters:

  • aValue:
  • aBase:

ToStringInvariant

 

class method ToStringInvariant(aValue: Double; aDigitsAfterDecimalPoint: Int32; aMinWidth: Int32): not nullable String

 

static String! ToStringInvariant(Double aValue, Int32 aDigitsAfterDecimalPoint, Int32 aMinWidth)

 

static func ToStringInvariant(_ aValue: Double, _ aDigitsAfterDecimalPoint: Int32, _ aMinWidth: Int32) -> String

 

static String ToStringInvariant(Double aValue, Integer aDigitsAfterDecimalPoint, Integer aMinWidth)

 

Shared Function ToStringInvariant(aValue As Double, aDigitsAfterDecimalPoint As Int32, aMinWidth As Int32) As String

Parameters:

  • aValue:
  • aDigitsAfterDecimalPoint:
  • aMinWidth:

ToUtf8Bytes

Convert a string to a byte array, encoded as utf8

 

class method ToUtf8Bytes(aValue: not nullable String): array of Byte

 

static Byte[] ToUtf8Bytes(String! aValue)

 

static func ToUtf8Bytes(_ aValue: String) -> Byte...

 

static Byte[] ToUtf8Bytes(String aValue)

 

Shared Function ToUtf8Bytes(aValue As String) As Byte()

Parameters:

  • aValue:

TryBinaryStringToUInt64

 

class method TryBinaryStringToUInt64(aValue: nullable String): nullable UInt64

 

static UInt64? TryBinaryStringToUInt64(String? aValue)

 

// Toffee
static func TryBinaryStringToUInt64(_ aValue: String) -> UInt64!
// ToffeeV2
static func TryBinaryStringToUInt64(_ aValue: String?) -> UInt64!

 

static UnsignedLong TryBinaryStringToUInt64(String aValue)

 

Shared Function TryBinaryStringToUInt64(aValue As String?) As UInt64?

Parameters:

  • aValue:

TryHexStringToUInt32

Convert a hex string to uint32, and returns null on failure, instead of an exception.

 

class method TryHexStringToUInt32(aValue: not nullable String): nullable UInt32

 

static UInt32? TryHexStringToUInt32(String! aValue)

 

static func TryHexStringToUInt32(_ aValue: String) -> UInt32!

 

static UnsignedInteger TryHexStringToUInt32(String aValue)

 

Shared Function TryHexStringToUInt32(aValue As String) As UInt32?

Parameters:

  • aValue:

TryHexStringToUInt64

Convert a hex string to uint64, and returns null on failure, instead of an exception.

 

class method TryHexStringToUInt64(aValue: not nullable String): nullable UInt64

 

static UInt64? TryHexStringToUInt64(String! aValue)

 

static func TryHexStringToUInt64(_ aValue: String) -> UInt64!

 

static UnsignedLong TryHexStringToUInt64(String aValue)

 

Shared Function TryHexStringToUInt64(aValue As String) As UInt64?

Parameters:

  • aValue:

TryToDouble

Convert a string to double, and returns null on failure, instead of an exception.

 

class method TryToDouble(aValue: nullable String; aLocale: Locale): nullable Double

 

static Double? TryToDouble(String? aValue, Locale aLocale)

 

// Toffee
static func TryToDouble(_ aValue: String, _ aLocale: Locale) -> Double!
// ToffeeV2
static func TryToDouble(_ aValue: String?, _ aLocale: Locale) -> Double!

 

static Double TryToDouble(String aValue, Locale aLocale)

 

Shared Function TryToDouble(aValue As String?, aLocale As Locale) As Double?

Parameters:

  • aValue:
  • aLocale:

TryToDoubleInvariant

Convert a string to double in the invariant culture, and returns null on failure, instead of an exception.

 

class method TryToDoubleInvariant(aValue: nullable String): nullable Double

 

static Double? TryToDoubleInvariant(String? aValue)

 

// Toffee
static func TryToDoubleInvariant(_ aValue: String) -> Double!
// ToffeeV2
static func TryToDoubleInvariant(_ aValue: String?) -> Double!

 

static Double TryToDoubleInvariant(String aValue)

 

Shared Function TryToDoubleInvariant(aValue As String?) As Double?

Parameters:

  • aValue:

TryToInt32

Convert a string to int32, and returns null on failure, instead of an exception.

 

class method TryToInt32(aValue: nullable String): nullable Int32

 

static Int32? TryToInt32(String? aValue)

 

// Toffee
static func TryToInt32(_ aValue: String) -> Int32!
// ToffeeV2
static func TryToInt32(_ aValue: String?) -> Int32!

 

static Integer TryToInt32(String aValue)

 

Shared Function TryToInt32(aValue As String?) As Int32?

Parameters:

  • aValue:

TryToInt64

Convert a string to int64, and returns null on failure, instead of an exception.

 

class method TryToInt64(aValue: nullable String): nullable Int64

 

static Int64? TryToInt64(String? aValue)

 

// Toffee
static func TryToInt64(_ aValue: String) -> Int64!
// ToffeeV2
static func TryToInt64(_ aValue: String?) -> Int64!

 

static Long TryToInt64(String aValue)

 

Shared Function TryToInt64(aValue As String?) As Int64?

Parameters:

  • aValue:

TryToIntPtr .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2

 

class method TryToIntPtr(aValue: nullable String): nullable IntPtr

 

static IntPtr? TryToIntPtr(String? aValue)

 

// Toffee
static func TryToIntPtr(_ aValue: String) -> IntPtr!
// ToffeeV2
static func TryToIntPtr(_ aValue: String?) -> IntPtr!

 

Shared Function TryToIntPtr(aValue As String?) As IntPtr?

Parameters:

  • aValue:

TryToUInt64

 

class method TryToUInt64(aValue: nullable String): nullable UInt64

 

static UInt64? TryToUInt64(String? aValue)

 

// Toffee
static func TryToUInt64(_ aValue: String) -> UInt64!
// ToffeeV2
static func TryToUInt64(_ aValue: String?) -> UInt64!

 

static UnsignedLong TryToUInt64(String aValue)

 

Shared Function TryToUInt64(aValue As String?) As UInt64?

Parameters:

  • aValue:

TryToUIntPtr .NET, .NET Core 6.0, .NET Standard 2.0, Island, Toffee, ToffeeV2

 

class method TryToUIntPtr(aValue: nullable String): nullable UIntPtr

 

static UIntPtr? TryToUIntPtr(String? aValue)

 

// Toffee
static func TryToUIntPtr(_ aValue: String) -> UIntPtr!
// ToffeeV2
static func TryToUIntPtr(_ aValue: String?) -> UIntPtr!

 

Shared Function TryToUIntPtr(aValue As String?) As UIntPtr?

Parameters:

  • aValue:

Utf8BytesToString

Convert an utf8 byte array to a string, with an optionl length; if no length is given uses the length of the array itself.

 

class method Utf8BytesToString(aBytes: array of Byte; aLength: nullable Int32): String

 

static String Utf8BytesToString(Byte[] aBytes, Int32? aLength)

 

static func Utf8BytesToString(_ aBytes: Byte..., _ aLength: Int32!) -> String

 

static String Utf8BytesToString(Byte[] aBytes, Integer aLength)

 

Shared Function Utf8BytesToString(aBytes As Byte(), aLength As Int32?) As String

Parameters:

  • aBytes:
  • aLength: