Example #1
0
 public bool add(AsnPathAlias a)
 {
     if (dictionary_.ContainsKey(a.Name))
     {
         dictionary_.Remove(a.Name);
     }
     dictionary_.Add(a.Name, a);
     return(true);
 }
Example #2
0
 public bool find(string path, out AsnPathAlias res)
 {
     res = null;
     foreach (var item in dictionary_)
     {
         if (item.Value.checkMatch(path))
         {
             res = item.Value;
             return(true);
         }
     }
     return(false);
 }
Example #3
0
 public void del(AsnPathAlias @alias)
 {
     dictionary_.Remove(alias.Name);
 }