func init // adds using namespace sys.add_use('System.Drawing') sys.add_use('System.ComponentModel') // initialize a member if(not isdef('Name')) sys.add_var(this.name, 'RotateFlipType') blk_init.println(this.codename, ' = ', this.RotateFlipType(), ';') end // initialize parser sys._se_init('Parse', 'RotateFlipType', 'RotateFlipType') end func _se_make(value) return('(RotateFlipType)Enum.Parse(typeof(RotateFlipType), ' + d('Value') + ')') end func doMembers() blk.println('foreach (object item in TypeDescriptor.GetConverter(typeof(RotateFlipType)).GetStandardValues()) {').inc() event('onMembers', 'item') blk.dec().println('}') end func RotateFlipType() return('RotateFlipType.' + this.props('RotateFlipType').value) end