Concat( )
method that take
object
references, rather than
string
references. These obtain the string representation of the objects with which they
are called and return a string containing the concatenation of those strings. (The string
representations are obtained by calling
ToString( )
on the objects.) These versions of
Concat( )
are shown here:
public static string Concat(object
v1
)
public static string Concat(object
v1
, object
v2
)
public static string Concat(object
v1
, object
v2
, object
v3
)
public static string Concat(object
v1
, object
v2
, object
v3
, object
v4
)
public static string Concat(params object[ ]
v
)
The first method simply returns the string equivalent of
v1.
The other methods return a
string that contains the concatenation of their arguments. The
Do'stlaringiz bilan baham: |