[Ironruby-core] boolean and to_clr_type
Ivan Porto Carrero
ivan at flanders.co.nz
Thu Feb 12 16:28:00 EST 2009
self.dcPlaying.DataType = System::Boolean
On Thu, Feb 12, 2009 at 8:42 PM, Brandon Jones <lists at ruby-forum.com> wrote:
> 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/.
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ironruby-core