# InternalsVisibleTo

**URL:** <https://www.ruby-forum.com/t/internalsvisibleto/181451>\
**Category:** IronRuby\
**Created:** [January 12, 2010, 6:06am UTC](https://www.ruby-forum.com/t/internalsvisibleto/181451 "2010-01-12T06:06:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrew\_Wilson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@andrew\_Wilson](https://www.ruby-forum.com/u/andrew_Wilson)\
**Post date:** [January 12, 2010, 6:06am UTC](https://www.ruby-forum.com/t/internalsvisibleto/181451/1 "2010-01-12T06:06:35Z")

</div>

I know this is a bit of a longshot, but has anyone got an  
internalsvisibleto  
attribute to work so they could debug internal classes from ir itself?  
I  
tried to add the namespace “ir” and public key to the assembly I was  
trying  
to test to no avail.

Im building out some rspec & IronRuby tests of my .net assemblies and it  
would be nice if I could reach out and touch some internal classes 🙂

-A

---

<div class="post-metadata">

**Author:** ![andrew\_Wilson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@andrew\_Wilson](https://www.ruby-forum.com/u/andrew_Wilson)\
**Post date:** [January 12, 2010, 6:14am UTC](https://www.ruby-forum.com/t/internalsvisibleto/181451/2 "2010-01-12T06:14:13Z")

</div>

Running IronRuby with the “-X:PrivateBinding” will allow access to  
private members, which should also work for internal members (I believe,  
try it out just to be sure and report back).

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of andrew Wilson  
Sent: Monday, January 11, 2010 9:06 PM  
To: removed\_email\_address@domain.invalid  
Subject: [Ironruby-core] InternalsVisibleTo

I know this is a bit of a longshot, but has anyone got an  
internalsvisibleto attribute to work so they could debug internal  
classes from ir itself? I tried to add the namespace “ir” and public  
key to the assembly I was trying to test to no avail.

Im building out some rspec & IronRuby tests of my .net assemblies and it  
would be nice if I could reach out and touch some internal classes 🙂

-A
