예제 #1
0
        internal int GetCount()
        {
            int        count = 1;
            ListOfDoom node  = child;

            while (node != null)
            {
                count++;
                node = node.child;
            }
            return(count);
        }
예제 #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);
        }
예제 #3
0
 internal ListAndThenSome(string word, byte[] frequencies)
 {
     Bucket      = new ListOfDoom(word);
     Frequencies = frequencies;
 }
예제 #4
0
 internal void Add(string value)
 {
     child      = new ListOfDoom(this.value, child);
     this.value = value;
 }
예제 #5
0
 private ListOfDoom(string value, ListOfDoom child)
 {
     this.child = child;
     this.value = value;
 }