StringUtilToString Method |
Format the specified collection into a single string using the specified separating
string to separate each item. Null items are converted to empty strings.
Namespace:
Nova.Utilities
Assembly:
Nova.CodeDOM (in Nova.CodeDOM.dll) Version: 7.44.8391.13415
Syntax public static string ToString(
this IEnumerable thisCollection,
string separator
)
Parameters
- thisCollection
- Type: System.CollectionsIEnumerable
Collection to be converted to a string. - separator
- Type: SystemString
Separating string to be inserted between items.
Return Value
Type:
StringThe collection contents formatted as a string.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerable. 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