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