Kelmen
Kelmen

Reputation: 1063

loose dependency

scenario:

3 projects/assemblies:

assm1.class1

assm2.class2 -> depend on assm1.class1

assm3.class3 -> depend on assm2.class2

in VS, assm3.class3 will need to reference assm1.class1 as well, becos assm2 depend on it.

is there a way I can make it (assm)3 only depend 2 without 1?

so that in future when I decided to change 2, to use/depend on new/diff thing like assm4.class4, I can just recompile assm2 without the need to recompile assm3.

Upvotes: 0

Views: 253

Answers (1)

Arseny
Arseny

Reputation: 7361

yes, I could implement dependency injection approach and define an interface in assm2 which would be implemented in assm1 by class1.

Upvotes: 1

Related Questions