1

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?

Dan Dinu
  • 32,492
  • 24
  • 78
  • 114

1 Answers1

2

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.

CodeCaster
  • 147,647
  • 23
  • 218
  • 272
  • I see, thanks. I have some common functionality and wanted to make it available through nuget by only publishing project B. – Dan Dinu Feb 26 '15 at 09:01