Dan Dinu
Dan Dinu

Reputation: 33388

.NET class visibility with more library projects

I have a public class MyClass in a library project A and this project is references by project B which is using the class.

Project B is also a library and let's say it's refereced by project C.

Is it possible to use MyClass in project C just by referencing project B, and how?

Upvotes: 1

Views: 69

Answers (1)

CodeCaster
CodeCaster

Reputation: 151594

Whether that is possible depends on your definition of "use".

Types reside in an assembly, you must reference the assembly they are in in order to use them from code to ensure compile-time checking. You can also load the types at runtime, interacting with them through reflection.

Upvotes: 2

Related Questions