What you are doing here is mnearly the same as asked here ;
How do I get parent's property from child class?[
^]
It is the wrong way of dependency and was very clearly answered by OriginalGriff.
The MainApp can use something from the used and integrated DLL - but how should be the dependency the other way round ? If you want to do it like this your class-library is no more independant from the MainApp - and that makes no sense.
What you could do is :
- create another Library which could be used either from the MainApp and also from the other Library ...