GenericExtensionsToSeparatedString Method |
Converts an enumeration of strings into a comma separated list
Namespace: Lithnet.MetadirectoryServicesAssembly: Lithnet.MetadirectoryServices (in Lithnet.MetadirectoryServices.dll) Version: 1.0.6017.24765
Syntax public static string ToSeparatedString(
this IEnumerable<string> strings,
string separator
)
<ExtensionAttribute>
Public Shared Function ToSeparatedString (
strings As IEnumerable(Of String),
separator As String
) As String
public:
[ExtensionAttribute]
static String^ ToSeparatedString(
IEnumerable<String^>^ strings,
String^ separator
)
Parameters
- strings
- Type: System.Collections.GenericIEnumerableString
The enumeration of string objects - separator
- Type: SystemString
The character or string to use to separate the strings
Return Value
Type:
StringThe comma separated list of strings
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableString. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also