Generic ElementsContainer in DynamoCore

Extending Dynamo to other applications beyond Revit will require coding a class that is much the same as Dynamo.Revit.ElementsContainer.  The difference will be the type being contained, and an application specific method for destroying objects.  

Making a generic ElementsContainer class that an application specific container class (in this case RevitElementsContainer) must inherit from makes this step more obvious.  

The responsibility of new projects coding to DynamoCore would be to create a class MyApplicationElementsContainer, that inherits from Dynamo.Core.ElementsContainer <TheTypeOfThingMyApplicationWillTrack>, and to override ElementsContainer's virtual DestroyElement method with the application specific methods and exception handling.