Mono Class Library: System.String Overview | MembersSystem.String.Concat Method |
Concatenates the string representations of three specified objects, in order provided. [Edit]
|
The concatenated string representations of the values of arg0, arg1, and arg2. [Edit]
This method concatenates the values returned by the string.ToString methods on every argument. string.Empty is used in place of any null argument.
This version of string.Concat(object) is equivalent to String.Concat( arg0.ToString(), arg1.ToString(), arg2.ToString () ).
[Edit]
The following example demonstrates concatenating three objects.
C# Example using System; public class StringConcatExample { public static void Main() { string str = String.Concat( 'c', 32, "String" ); Console.WriteLine( "The concatenated Objects are: {0}", str ); } }The output is
The concatenated Objects are: c32String
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0