@Beatrix W So there is no chance for an event.
Why do you think so?
If you add and implement the "app specific" Event as a Method in your App:
dim s as New ParserClass2("test-options")
AddHandler s.getErrorAppSpecific, AddressOf self.getErrorAppSpecific
dim e as string = s.geterror
RemoveHandler s.getErrorAppSpecific, AddressOf self.getErrorAppSpecific
See this example project , where I've quickly tried the two ideas.
ParserClass1: the one you would release to the public,
ParserClass1ForMyApp: the Subclass you would use in your app
ParserClass2: the one you would release to the public using Events, implemented in your own app using
I still think the best approach is to separate the "public Class" (which can be used in other projects, be sold, whatever) and the "only-myapp-related things". Maybe one of the two ideas works for your needs.