public static DeletionContext Create() { if (currentContext == null) { currentContext = new DeletionContext(); return currentContext; } else { throw new InvalidOperationException("DelectionContext can be created only one instance at same time."); } }
public static DeletionContext Create() { if (currentContext == null) { currentContext = new DeletionContext(); return(currentContext); } else { throw new InvalidOperationException("DelectionContext can be created only one instance at same time."); } }
public void Dispose() { actions.Clear(); currentContext = null; }
public void Dispose() { actions.Clear(); currentContext = null; }