Mono Class Library: System.String Overview | Members

System.String.Concat Method

Concatenates three specified instances of string. [Edit]

public static string Concat (string str0, string str1, string str2)

Parameters

str0
Documentation for this section has not yet been entered. [Edit]
str1
Documentation for this section has not yet been entered. [Edit]
str2
Documentation for this section has not yet been entered. [Edit]

Returns

A string containing the concatenation of str0, str1, and str2. [Edit]

Remarks

string.Empty is used in place of any null argument. [Edit]

Example

The following example demonstrates concatenating three strings.

C# Example
using System;
public class StringConcatExample {
 public static void Main() {
 string str = String.Concat( "one", "two", "three" );
 Console.WriteLine( "The concatenated strings are: {0}", str );
 }
}
   

The output is

The concatenated strings are: onetwothree

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0