示例#1
0
 public bool Remove(KeyValuePair <object, Artefact> item)
 {
     if (FromRef.ContainsKey(item.Key))
     {
         Artefact artefact = FromRef[item.Key];
         FromRef.Remove(item.Key);
         FromId.Remove(artefact.Id);
         return(true);
     }
     return(false);
 }
示例#2
0
 public bool Remove(object key)
 {
     if (FromRef.ContainsKey(key))
     {
         Artefact artefact = FromRef[key];
         FromRef.Remove(key);
         FromId.Remove(artefact.Id);
         return(true);
     }
     return(false);
 }
示例#3
0
 public bool ContainsKey(object key)
 {
     return(FromRef.ContainsKey(key));
 }