StringExtensionsSplitToT(String, Char) Method

Returns an enumerable collection of the specified type containing the substrings in this instance that are delimited by elements of a specified Char array

Definition

Namespace: PCBI_CadanceFab_Import
Assembly: PCBI_CadanceFab_Import (in PCBI_CadanceFab_Import.dll) Version: 16.0.0.0 (16.0.0.0)
C#
public static IEnumerable<T> SplitTo<T>(
	this string str,
	params char[] separator
)
where T : IConvertible

Parameters

str  String
The string.
separator  Char
An array of Unicode characters that delimit the substrings in this instance, an empty array containing no delimiters, or null.

Type Parameters

T
The type of the element to return in the collection, this type must implement IConvertible.

Return Value

IEnumerableT
An enumerable collection whose elements contain the substrings in this instance that are delimited by one or more characters in separator.

Usage Note

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