SgDotNet
Singapore Professional .NET User Group -For Cool Developers

IronRuby presentation and demo code

rated by 0 users
This post has 2 Replies | 1 Follower

Top 25 Contributor
Posts 231
cruizer Posted: 05-24-2009 4:30 PM

Posted in my blog: http://is.gd/CT93

http://devpinoy.org/blogs/cruizer

Not Ranked
Posts 1

Nice introduction on IronRuby. Yes Looking forward for your post regarding this.

I urge everyone to study atleast one dynamic language.

Btw, I'm planning to abandoning my dynamic source code generator (written in C#) in favor with IronPython.

 

Top 25 Contributor
Posts 231

I was able to create a class that can be used to wrap over a Ruby object so that WPF can bind to it. Basically WPF will bind to that object; the object exposes a property that's like a dictionary (key-value pair) where the keys are the Ruby object's accessors (or properties, in .NET parlance). The dictionary implementation then takes care of calling/invoking the Ruby object's members.

Looks good so far, except for one dilemma I have: if I have a DataGrid (WPF Toolkit) control, I will have to create a wrapper over the collection (if the collection is a Ruby object), and each item in the collection will have to have its own wrapper! Ugh. That will work, but it doesn't look good (especially from a performance standpoint).

http://devpinoy.org/blogs/cruizer

Page 1 of 1 (3 items) | RSS
Copyright SgDotNet 2004-2009
Powered by Community Server (Commercial Edition), by Telligent Systems