Click or drag to resize
StringExtensions Class
Provides an additional set of methods to work with strings.
Inheritance Hierarchy
SystemObject
  DW.SharpToolsStringExtensions

Namespace: DW.SharpTools
Assembly: DW.SharpTools (in DW.SharpTools.dll) Version: 2.4.0.0 (2.4.0.0)
Syntax
C#
public static class StringExtensions
Methods
  NameDescription
Public methodStatic memberSplit(String, Char, StringSplitOptions)
Returns a string array that contains the substrings in this string that are delimited by a specified Unicode character.
Public methodStatic memberSplit(String, String, StringSplitOptions)
Returns a string array that contains the substrings in this string that are delimited a specified string.
Top
Examples
C#
public void Split1()
{
    var element = "12-13--14-15";
    element.Split('-', StringSplitOptions.RemoveEmptyEntries);
}

public void Split2()
{
    var element = "12-13--14-15";
    element.Split("-", StringSplitOptions.RemoveEmptyEntries);
}
See Also