Example #1
0
 /// <summary>
 /// Creates a new WordList.
 /// </summary>
 /// <param name="text">The text.</param>
 /// <param name="splitChars">The split chars.</param>
 /// <returns></returns>
 /// <remarks>Documented by Dev03, 2008-02-06</remarks>
 public static WordList Create(string text, string[] splitChars)
 {
     string[] words = text.Split(splitChars, StringSplitOptions.RemoveEmptyEntries);
     WordList wl = new WordList(words);
     return wl;
 }
Example #2
0
 /// <summary>
 /// Creates a new WordList.
 /// </summary>
 /// <param name="text">The text.</param>
 /// <returns></returns>
 /// <remarks>Documented by Dev03, 2008-02-06</remarks>
 public static WordList Create(string text)
 {
     WordList wl = new WordList();
     wl.CommaText = text;
     return wl;
 }