# Calling Ruby classes from .NET/C#

**URL:** <https://www.ruby-forum.com/t/calling-ruby-classes-from-net-c/112800>\
**Category:** Ruby\
**Created:** [August 23, 2007, 12:11pm UTC](https://www.ruby-forum.com/t/calling-ruby-classes-from-net-c/112800 "2007-08-23T12:11:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vassilis\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/848f3c/32.png) [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Post date:** [August 23, 2007, 12:11pm UTC](https://www.ruby-forum.com/t/calling-ruby-classes-from-net-c/112800/1 "2007-08-23T12:11:10Z")

</div>

I have a small C# GUI and a rather extensive ruby application.  
What’s the best way to marry the two (I can’t change the C# GUI  
requirement and I really want to keep my Ruby app 🙂 ).  
Ideally I would like to call Ruby classes from the C# code (if push come  
to shove I will do a system call and run the ruby app externaly)  
Cheers,  
V.-

---

<div class="post-metadata">

**Author:** ![Vassilis\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/848f3c/32.png) [@Vassilis\_R](https://www.ruby-forum.com/u/Vassilis_R)\
**Post date:** [August 23, 2007, 7:30pm UTC](https://www.ruby-forum.com/t/calling-ruby-classes-from-net-c/112800/2 "2007-08-23T19:30:46Z")

</div>

Vassilis R. wrote:

> I have a small C# GUI and a rather extensive ruby application.  
> What’s the best way to marry the two (I can’t change the C# GUI  
> requirement and I really want to keep my Ruby app 🙂 ).  
> Ideally I would like to call Ruby classes from the C# code (if push come  
> to shove I will do a system call and run the ruby app externaly)  
> Cheers,  
> V.-

Our Ruby Connector does that. The Ruby Connector will let your .NET  
programs communicate with the Ruby interpreter or even run a .NET app  
and a Ruby program simultaneously. It also gives you the ability to  
design visual front ends to Ruby programs using the VS form designer and  
a language such as C#, [VB.NET](http://VB.NET) or Chrome.

Currently the Ruby Connector is in beta and is only available to  
registered users of Ruby In Steel Developer. We plan to make it more  
widely available shortly, so if you want to keep up to date, be sure to  
visit our blog from time to time.

Basic info on the Ruby Connector can be found here:  
[http://www.sapphiresteel.com/The-Ruby-Connector-beta-now](http://www.sapphiresteel.com/The-Ruby-Connector-beta-now)  
[http://www.sapphiresteel.com/From-C-to-Ruby-and-back-again-The](http://www.sapphiresteel.com/From-C-to-Ruby-and-back-again-The)  
[http://www.sapphiresteel.com/Adventures-in-Ruby-and-NET](http://www.sapphiresteel.com/Adventures-in-Ruby-and-NET)  
[http://www.sapphiresteel.com/Visual-Ruby-One-Small-Step](http://www.sapphiresteel.com/Visual-Ruby-One-Small-Step)

best wishes  
Huw

SapphireSteel Software  
[http://www.sapphiresteel.com](http://www.sapphiresteel.com)  
Ruby and Rails Development With Visual Studio
