private void fetch ( ) { next . clear ( ) ; // We need to remember for what thread the IEnumVARIANT was marshaled. Because if we want to interpret this // VARIANT as an interface pointer later on, we need to do this in the same thread! next . thread = e . getComThread ( ) ; int r = e . next ( 1 , next ) ; if ( r == 0 ) { next = null ; e . dispose ( ) ; } }
Fetches the next element .