How can I access internal classes from another assembly?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

While working with Wintellect's Power Collections, I noticed that they have a
unit test assembly that accesses internal classes in their power collection
assembly. I thought the definition of "internal" was that you could not
access an internal class from another assembly (without using reflection as a
back door). I cannot find anything special that they have done, but cannot
duplicate it. I must be missing something terribly simple about how
assemblies work.
 
I cannot find anything special that they have done, but cannot
duplicate it. I must be missing something terribly simple about how
assemblies work.

As of v2.0 of the framework there's a InternalsVisibleTo attribute
that lets you do this.


Mattias
 
Back
Top