# I just posted these questions to the forum, then saw Jon lams redirect here

**URL:** <https://www.ruby-forum.com/t/i-just-posted-these-questions-to-the-forum-then-saw-jon-lams-redirect-here/133627>\
**Category:** IronRuby\
**Created:** [April 2, 2008, 4:16am UTC](https://www.ruby-forum.com/t/i-just-posted-these-questions-to-the-forum-then-saw-jon-lams-redirect-here/133627 "2008-04-02T04:16:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris\_donnan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b38774/32.png) [@chris\_donnan](https://www.ruby-forum.com/u/chris_donnan)\
**Post date:** [April 2, 2008, 4:16am UTC](https://www.ruby-forum.com/t/i-just-posted-these-questions-to-the-forum-then-saw-jon-lams-redirect-here/133627/1 "2008-04-02T04:16:10Z")

</div>

Here are my 3 posts:

* * *

How do i unsub from a .net event?

if I attach to an event like:

grid.new\_row do |row|  
puts row  
end

- how do i unsub from it??

* * *

If i am accessing a .net api, how do i pass generic args from ruby?

* * *

What is the equivelent of typeof() for getting a type from a .net  
type. I am trying to script a testing framework for a windows app. I  
would like to get a hold of its service locator and call its:

service = locator.GetService(typeof(Foo))

If i have a handle to the locator in ruby, how do i pass it a .net  
type like that?

---

<div class="post-metadata">

**Author:** ![chris\_donnan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/b38774/32.png) [@chris\_donnan](https://www.ruby-forum.com/u/chris_donnan)\
**Post date:** [April 2, 2008, 3:26pm UTC](https://www.ruby-forum.com/t/i-just-posted-these-questions-to-the-forum-then-saw-jon-lams-redirect-here/133627/2 "2008-04-02T15:26:36Z")

</div>

chris donnan:

> How do i unsub from a .net event?

This is not supported today.

> If i am accessing a .net api, how do i pass generic args from ruby?

This is also not supported today.

> What is the equivelent of typeof() for getting a type from a .net type.  
> I am trying to script a testing framework for a windows app. I would  
> like to get a hold of its service locator and call its:
> 
> service = locator.GetService(typeof(Foo))

Foo.to\_clr\_type

Our .NET interop is fairly weak today. Because of our current push to  
get the language running in time for RailsConf, all .NET interop work is  
being pushed back into June on our schedule.

Thanks,  
-John
