# Re: Basic interoperability question

**URL:** <https://www.ruby-forum.com/t/re-basic-interoperability-question/169726>\
**Category:** IronRuby\
**Created:** [June 7, 2009, 9:01pm UTC](https://www.ruby-forum.com/t/re-basic-interoperability-question/169726 "2009-06-07T21:01:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raker\_t](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Post date:** [June 7, 2009, 9:01pm UTC](https://www.ruby-forum.com/t/re-basic-interoperability-question/169726/1 "2009-06-07T21:01:54Z")

</div>

Require ‘mscorlib’ is not as essential anymore. If you run ir -e “puts  
System::String.class” it will wolrk just fine. I still use require  
‘mscorlib’ in my scripts tlo signal to other programmers that this scrpt  
will use .NET interop, but I don’t think it is needed.

I’ll let Tomas answer the second part, and clarify my answer if needed.

JD

…there is no try  
Sent from my phone. Please excuse typos and txtspk.

---

<div class="post-metadata">

**Author:** ![raker\_t](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Post date:** [June 8, 2009, 1:19am UTC](https://www.ruby-forum.com/t/re-basic-interoperability-question/169726/2 "2009-06-08T01:19:40Z")

</div>

As for #2: it doesn’t work yet. instance\_methods currently only includes  
Ruby methods and methods that were already called (are cached) but it  
should indeed include names of all instance CLR members.

Tomas

---

<div class="post-metadata">

**Author:** ![raker\_t](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Post date:** [July 1, 2009, 10:09am UTC](https://www.ruby-forum.com/t/re-basic-interoperability-question/169726/3 "2009-07-01T10:09:07Z")

</div>

Should require ‘mscorlib’ not be needed though? Does the first reference  
to “System” do this automatically? JRuby requires that you do “require  
‘java’” to get at any Java classes, and I’m not what the benefit to  
doing it implicitly is. IronPython also has the “import clr”  
requirement, so what to people thing about the lack of a signal as to  
whether a IronRuby script uses .NET types or not?

Tomas, can you elaborate on why this is technically not needed anymore?
