public void Destroy() { if (LastContext != null) { LastContext.Destroy(); } if (ParentContext != null) { ParentContext.Destroy(); } }
public void Destroy(bool preserveParent) { if (preserveParent) { if (LastContext != null) { LastContext.Destroy(); } } else { Destroy(); } }