How to: Parse Strings Using the Split Method (C#)
Full Name:
How to: Parse Strings Using the Split Method (C#)
Short Name:
How to: Parse Strings Using the Split Method (C#)
Type of Entity:
C#
Abstract:
The following code example demonstrates how a string can be parsed using the System.String.Split method. This method works by returning an array of strings, where each element is a word. As input, Split takes an array of chars that indicate which characters are to be used as delimiters. In this example, spaces, commas, periods, colons, and tabs are used. An array containing these delimiters is passed to Split, and each word in the sentence is displayed separately using the resulting array of strings.
MSDN Source URL:
http://msdn2.microsoft.com/ms228388.aspx