public void delete() {synchronized (SnapshotDeletionPolicy.this) {if (!refCounts.containsKey(cp.getGeneration())) {cp.delete();}}}
public override void Delete(){lock (outerInstance){if (!outerInstance.m_refCounts.ContainsKey(m_cp.Generation)){m_cp.Delete();}}}