CollectionExt.SplitAddRange Method

Splits a string using Split(Char[]) and adds the result to the collection.

Namespace: UltimateXR.Extensions.System.Collections
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static ICollection<string> SplitAddRange(
	this ICollection<string> self,
	string toSplit,
	char separator
)

Parameters

 

self
Type: System.Collections.Generic.ICollection(String)
Collection to add the split result to
toSplit
Type: System.String
String to split
separator
Type: System.Char
Separator to use for splitting. This will be used to call Split(Char[]) on toSplit

Return Value

Type: ICollection(String)
The result collection

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ICollection(String). 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

Reference

CollectionExt Class
UltimateXR.Extensions.System.Collections Namespace