toString

Summary

Converts the unsigned short value to an equivalent string value.

Signatures

Click on a signature to select it and view its documentation.

Usage

public string toString()

Returns

The equivalent string value for the unsigned short value.

Description

Converts the unsigned short value to an equivalent string value.

For instance, 123 will become "123".

Examples

Basic Usage
1
2
3
4
5
6
import System;
 
unsigned short a = 1;
unsigned short b = 2;
Console.log(a.toString()); // "1"
Console.log(b.toString()); // "2"
Concatentation of Stringified Values
1
2
3
4
5
6
import System;
 
unsigned short a = 1;
unsigned short b = 2;
Console.log(a.toString() + b.toString());       // "12"
Console.log(a.toString() + ", " + b.toString()); // "1, 2"

Share

HTML | BBCode | Direct Link