func init // adds using namespace sys.add_use('System.Drawing.Imaging') // initialize instance sys.add_var(this.name, 'PropertyItem') // makes implementation methods for properties sys._prop_init('.Id', 1, 0, 1) sys._prop_init('.Len', 1, 0, 1) sys._prop_init('.Type', 1, 0, 0) sys._prop_init('.Value', 1, 0, 0) // makes implementation of methods as properties sys._mtd_as_prop_init('PropertyItem') end func doPropertyItem(data) blk.println(this.codename, ' = ', d("Item"), ';') end func doId(data) blk.println(this.codename, '.Id = ', d("id"), ';') end func doLen(data) blk.println(this.codename, '.Len = ', d("len"), ';') end func doType(data) blk.println(this.codename, '.Type = ', d("type"), ';') end func doValue(data) blk.println(this.codename, '.Value = ', d("value"), ';') end