klyn.CodeUnit.toString
method
public override toString() as String
Description

Returns this UTF-16 code unit as a one-character immutable String. Works identically through an Object reference and preserves U+0000.

Returns

The character represented by this code unit.

Throws
  • ValueException if this is an isolated UTF-16 surrogate.
Example
letter as Object = `K`
assert letter.toString() == "K"