public void DeleteElement <T>(T element) where T : ITempElement, new() { ITempElement foundObject = elements.Find(x => x.Equals(element)); elements.Remove(foundObject); foundObject.Dispose(); }
public void Dispose() { El.Dispose(); }