Referencing Interfaces
-
I have three projects... 1) An interface definition dll as Project1. 2) An object definition dll as Project2. 3) A test application as Project3. Class1 in Project2 implements the interface defined in Project1. The test application uses Class1. For some reason, I have to add a reference to the interface dll in both Project2 and Project3! I thought it would only be necessary to reference the interface in Project2, and that it would not be necessary to reference the interface in the application that uses Class1 in Project3. Is this the expected behaviour?
-
I have three projects... 1) An interface definition dll as Project1. 2) An object definition dll as Project2. 3) A test application as Project3. Class1 in Project2 implements the interface defined in Project1. The test application uses Class1. For some reason, I have to add a reference to the interface dll in both Project2 and Project3! I thought it would only be necessary to reference the interface in Project2, and that it would not be necessary to reference the interface in the application that uses Class1 in Project3. Is this the expected behaviour?
-
I have three projects... 1) An interface definition dll as Project1. 2) An object definition dll as Project2. 3) A test application as Project3. Class1 in Project2 implements the interface defined in Project1. The test application uses Class1. For some reason, I have to add a reference to the interface dll in both Project2 and Project3! I thought it would only be necessary to reference the interface in Project2, and that it would not be necessary to reference the interface in the application that uses Class1 in Project3. Is this the expected behaviour?
-
No... Project3 creates an instance of Class1.