I am not very familiar with VB.NET so I don't know if this is possible...
Some code I am working on is setting the properties of a very large class. In the setter of each property an event is raised to indicate that the class data has changed. An event handler then serializes the instance of the class to a database.
Obviously I do not want this to happen after each property is set, so I need to either have a delay before saving, or something else.
I am keeping a large list of instances in a cache implementation already, so one option would be to only process the cache every now and then and save all unsaved instances in cache to the database.
So I tried to see if I could derive a class from Application (and override DoEvents), but it is NotInheritable, so no luck there.
Any ideas?