Exemple #1
0
 private static void RemoveFromRelationList <T>(string key, T relation, TstDictionaries fromRelations)
     where T : RelationBase <T>
 {
     if (key != null)
     {
         TstDictionary list = fromRelations[key];
         if (list != null)
         {
             string href = relation.HRef;
             if (href != null && !list.Contains(href))
             {
                 list.Remove(href);
             }
             if (list.Count == 0)
             {
                 fromRelations.Remove(key);
             }
         }
     }
 }