Exemplo n.º 1
0
 public bool add(AsnPathAlias a)
 {
     if (dictionary_.ContainsKey(a.Name))
     {
         dictionary_.Remove(a.Name);
     }
     dictionary_.Add(a.Name, a);
     return(true);
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 public void del(AsnPathAlias @alias)
 {
     dictionary_.Remove(alias.Name);
 }