self.dcPlaying.DataType = System::Boolean
On Thu, Feb 12, 2009 at 8:42 PM, Brandon Jones <li...@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@rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >
_______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core