Ejemplo n.º 1
0
        internal int GetCount()
        {
            int        count = 1;
            ListOfDoom node  = child;

            while (node != null)
            {
                count++;
                node = node.child;
            }
            return(count);
        }
Ejemplo n.º 2
0
        internal List <string> ToList()
        {
            List <string> list = new List <string>();
            ListOfDoom    node = this;

            while (node != null)
            {
                list.Add(node.value);
                node = node.child;
            }
            return(list);
        }
Ejemplo n.º 3
0
 internal ListAndThenSome(string word, byte[] frequencies)
 {
     Bucket      = new ListOfDoom(word);
     Frequencies = frequencies;
 }
Ejemplo n.º 4
0
 internal void Add(string value)
 {
     child      = new ListOfDoom(this.value, child);
     this.value = value;
 }
Ejemplo n.º 5
0
 private ListOfDoom(string value, ListOfDoom child)
 {
     this.child = child;
     this.value = value;
 }