fromCharArray

Summary

Constructs a new string from an array of character values.

Usage

public static string fromCharArray(char[] charCodeArray)

Returns

A new string representing the equivalent of the specified character array.

Parameters

charCodeArray

The array of character values to construct a string from.

Description

Constructs a new string from an array of character values.

Examples

Basic Usage
1
2
3
4
import System;
 
char[] characters = [ `a`, `b`, `c` ];
Console.log(String.fromCharArray(characters)); // "abc"

Share

HTML | BBCode | Direct Link