NAnt SDK Documentation - v0.92 |

# TargetCollection.ToString Method (String)

Gets the names of the targets in the TargetCollection combined into one list separated by the given String.

[Visual Basic]
Overloads Public Function ToString( _
ByVal separator As String _
) As String
[C#]
public string ToString(
string separator
);

#### Return Value

A String that contains a list of the names of the targets in the TargetCollection, separated by the specified separator.

#### See Also

TargetCollection Class | NAnt.Core Namespace | TargetCollection.ToString Overload List