toString

Summary

Converts the object to a string.

Usage

public virtual string toString()

Returns

The string representation of the object.

Description

Converts the object to a string.

The string representation of an object will usually be in the form of [object CLASSNAME].

Examples

Basic Usage
1
2
3
4
import System;
 
System.Object obj = new System.Object();
Console.log(obj.toString()); // "[object System.Object]"

Share

HTML | BBCode | Direct Link