StringsSplitTrim Method

Get a one-dimensional zero-based array containing the specified number of substrings by removing spaces from the beginning and end of the substrings

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static string[] SplitTrim(
	string expression,
	string delimiter = "",
	int limit = -1
)

Parameters

expression  String
Expression containing substrings and delimiters.
delimiter  String  (Optional)
Any individual character used to identify substring boundaries. If Delimiter is omitted, the space character (" ") is assumed to be the delimiter.
limit  Int32  (Optional)
Maximum number of substrings into which the input string should be split. The default value is -1, which indicates that the input string should be split every time the Delimiter string appears.

Return Value

String
Matriz de String. Si Expression es una cadena de longitud cero (""), devuelve una matriz de un solo elemento que contiene una cadena de longitud cero.

Remarks

If Delimiter is a zero-length string or does not appear in Expression, returns a single-element array containing the entire Expression string.

See Also