public virtual void UnDelete(bool checkDeleted = true) { if (checkDeleted && !Deleted) { throw new InvalidOperationException("Cannot undelete a non deleted entry."); } entryContentResolver.UnDelete(); Parent.AddEntry(this); Deleted = false; }