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
Namespace: PCBI_CadanceFab_ImportAssembly: PCBI_CadanceFab_Import (in PCBI_CadanceFab_Import.dll) Version: 16.0.0.0 (16.0.0.0)
public static IEnumerable<T> SplitTo<T>(
this string str,
params char[] separator
)
where T : IConvertible
<ExtensionAttribute>
Public Shared Function SplitTo(Of T As IConvertible) (
str As String,
ParamArray separator As Char()
) As IEnumerable(Of T)
public:
[ExtensionAttribute]
generic<typename T>
where T : IConvertible
static IEnumerable<T>^ SplitTo(
String^ str,
... array<wchar_t>^ separator
)
[<ExtensionAttribute>]
static member SplitTo :
str : string *
separator : char[] -> IEnumerable<'T> when 'T : IConvertible
- 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.
- T
-
The type of the element to return in the collection, this type must implement IConvertible.
IEnumerableT
An enumerable collection whose elements contain the substrings in this instance that are delimited by one or more
characters in separator.
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).