0

For reasons I can't explain here, I need to create a single dll file that can be used in .Net Framework applications. In that library, I use a 3rd party library that can not be (directly) used/imported by the end-user application. I use Fody/Costura to bundle the library into one dll file.

In my own library, I have a class that inherits from a class in the 3rd party library. I can use that class without problems in the application, but I get compile errors when I use properties of the base class. I can avoid these compile errors by creating a "proxy" in the child class.

Is there any way to make this work, without these proxy properties?

Coder14
  • 1,305
  • 1
  • 9
  • 26
  • 1
    Without a practical example it is difficult to "debug" why you have problems – xanatos Jan 05 '21 at 11:45
  • 1
    You know that you can create "proxies" of the single properties in the child classes like `public new SomeType SomeProperty { { get => base.SomeProperty; } { set => base.SomeProperty = value; }` – xanatos Jan 05 '21 at 11:49
  • @xanatos, that's what I'm doing. I was just wondering if there was a quicker way, than to add all these proxies. I guess not :) – Coder14 Jan 05 '21 at 13:32
  • You could create a Fody to do it for you... – xanatos Jan 05 '21 at 13:33
  • I'm already doing that. Still need all proxies. – Coder14 Jan 05 '21 at 13:54

0 Answers0