Boolean and to_clr_type


#1

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?


#2

self.dcPlaying.DataType = System::Boolean


#3

Well now I feel dumb :stuck_out_tongue: