toString

Summary

Returns a string representation of the array value.

Usage

public override string toString()

Returns

A string representation of the array value.

Description

Returns a string representation of the array value.

Examples

Basic Usage
1
2
3
4
5
6
7
import System;
 
int[] arr1 = [ 1, 2, 3 ];
Console.log(arr1.toString()); // "1,2,3"
 
string[] arr2 = [ "a", "b", "c" ];
Console.log(arr2.toString()); // "a,b,c"

Share

HTML | BBCode | Direct Link