Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
        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();
        }