[Ironruby-core] .Net<->IR Object Mapping

Shay Friedman lists at ruby-forum.com
Mon Jun 8 13:57:11 EDT 2009


The list on this page is great but it is not complete.

Here is what I came up with. Correct me if I'm mistaken:

.Net Object    Ruby Object
------------------------------------------------------
Namespace    Module
Interface    Module
Class      Class
Enum      Class
Enum constant    Class method
Constant    Class method
Static method    Class method
Property    Getter and setter methods
Public method    Instance method
Protected method  Instance method
Private method    Isn't mapped at all
Delegate    Class

I have to say that the delegate mapping is awesome!!!
I can't say why, but using it with a code block is much more fun than 
writing anonymous methods or lambda expressions in C# :)

Thanks,
Shay.

----------------------------
http://www.ironshay.com
Follow me: http://twitter.com/ironshay
-- 
Posted via http://www.ruby-forum.com/.


More information about the Ironruby-core mailing list