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.

Tomas


From: [email protected] 
[mailto:[email protected]] 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

Hi

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

end

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)
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to