0

I am having 3 projects namely Pro1, Pro2 and Pro3.

I have added the reference of Pro3 into Pro2 and Pro2 into Pro1.

Now my question is how to access the classes of Pro3 from Pro1. I did not added the reference of Pro3 but added the reference Pro2 which has the reference of Pro3.

Can i access the Pro3 classes from Pro1 which has the reference of Pro2.

Thaadikkaaran
  • 5,088
  • 7
  • 37
  • 59

2 Answers2

0

I believe your question is on C# based on your other questions.

Direct answer is No, you cannot acces Pro3 classes in Pro1 without referencing it. Transitivity doesn't apply in project references.

Having said that if you still want to do it you have got few options here: MEF, Reflection.

Community
  • 1
  • 1
anivas
  • 6,437
  • 6
  • 37
  • 45
0

You can use reflection to do that. http://download.oracle.com/javase/tutorial/reflect/index.html

James
  • 1,436
  • 1
  • 13
  • 25