public WordListRazor(String wordsStr, char delimiter) : base(delimiter) { WordStr = RemoveTagsFromString(wordsStr).Trim('\t'); if (!String.IsNullOrEmpty(WordStr)) { Words = new List <string>(WordStr.Split(Delimiter).ToArray()); CleanseList(); } }
public WordListXml(XmlNode node, char delimiter) : base(delimiter) { this.node = node; var valueStr = node.Value != null ? node.Value : node.InnerText; WordStr = RemoveTagsFromString(valueStr); Words = new List <string>(WordStr.Split(Delimiter).ToArray()); CleanseList(); }