I have 3 assemblies written in C#, namely A.exe, B.dll, C.dll
- C.dll defines a public interface IfaceC.
- A.exe defines a public class ClassA : IfaceC
- B.dll uses ClassA but does not make explicit use of IfaceC
My question: is it possible to compile B without referencing C.dll ? I do not use it and I want to prevent a developer from using it (i.e. typing "IfaceC" in the B's code accidentally). However A.exe still needs it.
EDIT
Given my archi, A can reference C but not B, C cannot reference nor A neither B, B can reference A but not (if possible) C