110,534
社区成员
发帖
与我相关
我的任务
分享
//
// 摘要:
// Splits a string into a maximum number of substrings based on the characters in
// an array.
//
// 参数:
// separator:
// A character array that delimits the substrings in this string, an empty array
// that contains no delimiters, or null.
//
// count:
// The maximum number of substrings to return.
//
// options:
// System.StringSplitOptions.RemoveEmptyEntries to omit empty array elements from
// the array returned; or System.StringSplitOptions.None to include empty array
// elements in the array returned.
//
// 返回结果:
// An array whose elements contain the substrings in this string that are delimited
// by one or more characters in separator. For more information, see the Remarks
// section.
//
// 异常:
// T:System.ArgumentOutOfRangeException:
// count is negative.
//
// T:System.ArgumentException:
// options is not one of the System.StringSplitOptions values.
public String[] Split(char[] separator, int count, StringSplitOptions options);
//
// 参数:
// separator:
//
// count:
//
// options:
public String[] Split(char separator, int count, StringSplitOptions options = StringSplitOptions.None);
//
// 参数:
// separator:
//
// options:
public String[] Split(char separator, StringSplitOptions options = StringSplitOptions.None);
//
// 摘要:
// Splits a string into substrings that are based on the characters in an array.
//
// 参数:
// separator:
// A character array that delimits the substrings in this string, an empty array
// that contains no delimiters, or null.
//
// 返回结果:
// An array whose elements contain the substrings from this instance that are delimited
// by one or more characters in separator. For more information, see the Remarks
// section.
public String[] Split(params char[] separator);
//
// 摘要:
// Splits a string into a maximum number of substrings based on the characters in
// an array. You also specify the maximum number of substrings to return.
//
// 参数:
// separator:
// A character array that delimits the substrings in this string, an empty array
// that contains no delimiters, or null.
//
// count:
// The maximum number of substrings to return.
//
// 返回结果:
// An array whose elements contain the substrings in this instance that are delimited
// by one or more characters in separator. For more information, see the Remarks
// section.
//
// 异常:
// T:System.ArgumentOutOfRangeException:
// count is negative.
public String[] Split(char[] separator, int count);
//
// 摘要:
// Splits a string into substrings based on the characters in an array. You can
// specify whether the substrings include empty array elements.
//
// 参数:
// separator:
// A character array that delimits the substrings in this string, an empty array
// that contains no delimiters, or null.
//
// options:
// System.StringSplitOptions.RemoveEmptyEntries to omit empty array elements from
// the array returned; or System.StringSplitOptions.None to include empty array
// elements in the array returned.
//
// 返回结果:
// An array whose elements contain the substrings in this string that are delimited
// by one or more characters in separator. For more information, see the Remarks
// section.
//
// 异常:
// T:System.ArgumentException:
// options is not one of the System.StringSplitOptions values.
public String[] Split(char[] separator, StringSplitOptions options);
//
// 参数:
// separator:
//
// count:
//
// options:
public String[] Split(String separator, int count, StringSplitOptions options = StringSplitOptions.None);
//
// 参数:
// separator:
//
// options:
public String[] Split(String separator, StringSplitOptions options = StringSplitOptions.None);
//
// 摘要:
// Splits a string into a maximum number of substrings based on the strings in an
// array. You can specify whether the substrings include empty array elements.
//
// 参数:
// separator:
// A string array that delimits the substrings in this string, an empty array that
// contains no delimiters, or null.
//
// count:
// The maximum number of substrings to return.
//
// options:
// System.StringSplitOptions.RemoveEmptyEntries to omit empty array elements from
// the array returned; or System.StringSplitOptions.None to include empty array
// elements in the array returned.
//
// 返回结果:
// 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.
//
// 异常:
// T:System.ArgumentOutOfRangeException:
// count is negative.
//
// T:System.ArgumentException:
// options is not one of the System.StringSplitOptions values.
public String[] Split(String[] separator, int count, StringSplitOptions options);
//
// 摘要:
// Splits a string into substrings based on the strings in an array. You can specify
// whether the substrings include empty array elements.
//
// 参数:
// separator:
// A string array that delimits the substrings in this string, an empty array that
// contains no delimiters, or null.
//
// options:
// System.StringSplitOptions.RemoveEmptyEntries to omit empty array elements from
// the array returned; or System.StringSplitOptions.None to include empty array
// elements in the array returned.
//
// 返回结果:
// 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.
//
// 异常:
// T:System.ArgumentException:
// options is not one of the System.StringSplitOptions values.
public String[] Split(String[] separator, StringSplitOptions options);