func init // adds using namespace sys.add_use('System') // initialize instance sys.add_var(this.name, 'IFormatProvider') end func doGetFormat(data) blk.println(this.codename, ' = ', d('Interface'), ';') if(linked("onGetFormat")) event("onGetFormat", this.codename + '.GetFormat(' + d("FormatType") + ')') else blk.println(this.codename, '.GetFormat(', d("FormatType"), ');') end end