예제 #1
0
 /// <summary>
 /// Inserts a new element into the Trie
 /// <para>Returns a <see cref="bool"/> on insert completed successfully </para>
 /// </summary>
 /// <param name="key">The string under which the data is stored</param>
 /// <param name="value">The value to store</param>
 public bool Insert(string key, T value)
 {
     if (string.IsNullOrWhiteSpace(key))
     {
         return(false);
     }
     return(Root.AddChlid(key, value));
 }