[Ironruby-core] databinding for Silverlight and/or WPF

Tomas Matousek Tomas.Matousek at microsoft.com
Wed Jul 15 11:29:20 EDT 2009

No, it won’t generate CLR class unless your class implements an interface or derives from a CLR type.
And even if it does attributes don’t define CLR properties. We don’t support defining CLR members on a Ruby class yet, but we should in future.


From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Ivan Porto Carrero
Sent: Wednesday, July 15, 2009 2:16 AM
To: ironruby-core
Subject: [Ironruby-core] databinding for Silverlight and/or WPF


are there .NET properties generated in the underlying CLR type when you define an attribute on a ruby class?

class Photo

   attr_accessor :id, :title, :secret, :farm, :server


would that generate a CLR class that has those attributes as properties?
Will that work in silverlight too?

Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090715/e35810b2/attachment.html>

More information about the Ironruby-core mailing list