How can I access internal classes from another assembly?

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.
 
M

Mattias Sjögren

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top