[Ironruby-core] boolean and to_clr_type

Brandon Jones lists at ruby-forum.com
Thu Feb 12 14:42:11 EST 2009

I'm working with a windows form application using IronRuby. I'm hitting
a snag when using DataSets. I have a DataColumn that I want to be a
boolean. But I can't figure out how to set the DataType properly.
Numerics are easy enough:

self.dcScore.DataType = Fixnum.to_clr_type
self.dcTime.DataType = Float.to_clr_type
self.dcPlaying.DataType = ???

TrueClass and FalseClass have no CLR type (that I can see).  Must I hack
in integer values in place of true/false?
Posted via http://www.ruby-forum.com/.

More information about the Ironruby-core mailing list