0

I have a class "ManagerClass" which is inherited from a baseClass "Base". The BaseClass is not in the same assembly, there is a reference to the BaseClass Assembly.

If I set a reference to the "ManagerClass" Assembly from a third Assembly I was expecting to get access to the "ManagerClass" and the Properties of the BaseClass. But I get an error, that there is no reference to the BaseClass.

Could this work as I wished or isn't it possible?

Thanks in advance.

Matt.G
  • 3,586
  • 2
  • 10
  • 23
Nunzio
  • 76
  • 1
  • 7
  • Have you tried adding a reference to the Assembly the base class is in your third assembly?? – JayV Mar 24 '18 at 00:04
  • Gaining access to BaseClass properties depends on their declaration. If they are Private, then no it isn't possible. Public - yes you can. Protected - you will have to write a new method to access the Protected properties – JayV Mar 24 '18 at 00:11
  • To add a reference from the third class to the base class is exactly what I want to avoid. Isn't it possible without reference? With a reference every thing works. – Nunzio Mar 24 '18 at 01:07

0 Answers0