It’s not entirely clear what you are asking, but I’ll try anyway.
Suppose you have two DLLs, old.dll and new.dll, each of which has an N namespace of type C. You can do this:
csc /r:NEW=new.dll /r:OLD=old.dll foo.cs
and then in foo.cs you can say
extern alias NEW; extern alias OLD; class D : NEW::NC { } class E : OLD::NC { }
and D inherits from NC in new.dll, E inherits from NC in old.dll.
Does your problem solve?
source share