Windows apps
Collapse the table of content
Expand the table of content

Concat Method (Object, Object)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Concatenates the string representations of two specified objects.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public:
static String^ Concat(
	Object^ arg0, 
	Object^ arg1
)

Parameters

arg0
Type: System..::..Object
The first object to concatenate.
arg1
Type: System..::..Object
The second object to concatenate.

Return Value

Type: System..::..String
The concatenated string representations of the values of arg0 and arg1.

The method concatenates arg0 and arg1by calling the parameterless ToString method of arg0 and arg1; it does not add any delimiters.

String..::..Empty is used in place of any null argument.

If either of the arguments is an array reference, the method concatenates a string representing that array, instead of its members (for example, "System.String[]").

Show:
© 2017 Microsoft