Inheritance from the Enterprise Library

Aug 6, 2007 at 4:55 AM
I'm trying to create a single DLL which all developers in our
organisation will reference. I want to place inside it the Microsoft
Enterprise Libraries and expose them out through the DLL. On most
occassions there will be no change to the Enterprise libraries but on
some I may wish to hide some functionality or overide some of the
Enterprise Libraries.


Namespace MycompanyLib
Public Class Cache
Inherits Microsoft.Practices.EnterpriseLibrary.Caching.Cache
End Class
End Namespace

However, a Sub() new now needs to be written because the Enterprise
Libraries Cache constructor expects paramaters. The paramaters are also enterprise library specific classes so
these also need to be exposed. The problem has snowballed on me as more and more code is required to expose a single class.

I don't want to have to write too much
code but it appears to be impossible to use the enterprise libraries as base classes and extend them.

Is there any way I can do this without spending weeks writing additional code ? I don't want to modify the enterprise libraries source code because a) we don't code in c# here and b) it will become to hard to maintain when new version of the ent library are released.

Any help appreciated