Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: string[] SplitNoEmpty(this string, params string[])

Declaration

public static string[] SplitNoEmpty(
    this string str,
    params string[] separator
)

Summary

Returns a string array that contains the substrings in this string that are delimited by elements of a specified string array. Empty items (zero-length strings) are filtered out.

Parameters

this stringstr String to be split.
string[]separator Strings that delimit the substrings in this string.

Returns

An array whose elements contain the substrings in this string that are delimited by one or more strings in separator. For more information, see the Remarks section.