IronRuby > Documentation > .NET Integration

.NET Integration

From $1

Table of contents
No headers

Interested in using the .NET framework or other .NET-based libraries from Ruby? Of course you are, and you’re in the right place. This documentation details how to use .NET-based libraries within and alongside IronRuby. IronRuby’s .NET integration is all about mapping CLR constructs to Ruby constructs, letting you use .NET-based code from C#, VB.NET, or any other CLR language, just like it was Ruby. This documentation mainly explains those mappings.

This documentation assumes you already know Ruby, have IronRuby set up, and know how to use ir.exe. If not, see the Pragmatic Programmer’s Guide to Ruby and the main documentation page on ironruby.net.

Using these concepts, you can then interact with the larger .NET ecosystem, comprised of Microsoft provided frameworks like WPF, ASP.NET, WinForms, SQLServer, etc, and all other frameworks built on-top of .NET

If you are designing a .NET API, follow these guidelines to make sure it is consumable by IronRuby (and other DLR languages in general).

Tags:
 
Images (0)
 
Comments (3)
Viewing 3 of 3 comments: view all
I have made a small example of calling a .Net library from ironRuby. Actually I use the mini_rspec to test a .Net library: http://khebbie.dk/post/2008/08/Example-of-using-ironRubys-mini_rspec-library.aspx
Posted 13:55, 31 Aug 2008
Since a CLR Enum is a Class in Iron Ruby, how do we or together multiple Enums? For Example: System::IO::NotifyFilters.LastAccess | System::IO::NotifyFilters.LastWrite Results in: Microsoft.Scripting.Core:0:in `Bind': undefined method `|' for # (NoMethodError)
Posted 14:13, 10 Oct 2008
@reidm, Enums can be xor'd together now. http://ironruby.net/documentation/.net/enums
Posted 20:51, 17 Jun 2009
Viewing 3 of 3 comments: view all
You must login to post a comment.

 
SourceForge.net