public void Delete() { FileContext.SetDirty(); ParentElement?.ChildElements?.Remove(this); if (InnerEntity?.Parent != null) // for removing items in collection { InnerEntity?.Remove(); } }
internal void Revert() { FileContext.SetDirty(); _initialized = false; HasParent = false; Real.Clear(); Exposed.Clear(); InnerEntity?.Remove(); InnerEntity = null; }