func init // adds using namespace sys.add_use('System.Collections') // initialize instance sys.add_var(this.name, 'ICollection') end func doCopyTo(array, index) blk.println(this.codename, ' = ', d('Interface'), ';') .println(this.codename, '.CopyTo(', d("array"), ', ', d("index"), ');') end func Count blk.println(this.codename, ' = ', d('Interface'), ';') return(this.codename + '.Count') end func IsSynchronized blk.println(this.codename, ' = ', d('Interface'), ';') return(this.codename + '.IsSynchronized') end func SyncRoot blk.println(this.codename, ' = ', d('Interface'), ';') return(this.codename + '.SyncRoot') end include("IEnumerableInherit")