concat

Summary

Concatenates two strings together.

Usage

public string concat(...string toConcat)

Returns

The concatenated string.

Parameters

toConcat

The string to concatenate.

Description

Concatenates two strings together and returns the result.

The supplied argument is appended to the end of the original string.

The original string is not modified. Instead, a new string is created that is the concatenation of the two strings.

Examples

Basic Usage
1
2
3
4
5
import System;
 
string abc = "abc";
string def = "def";
Console.log(abc.concat(def)); // "abcdef"

Share

HTML | BBCode | Direct Link