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); }
public bool Remove(object key) { if (FromRef.ContainsKey(key)) { Artefact artefact = FromRef[key]; FromRef.Remove(key); FromId.Remove(artefact.Id); return(true); } return(false); }