Exemple #1
0
        internal MTNameTableEnumerator(MTNameTable nt)
        {
            if (nt.rwLock != null)
            {
                nt.rwLock.AcquireReaderLock(nt.timeout);
            }

            names = new ArrayList();
            Walk(nt.rootNode);
            iName = -1;

            if (nt.rwLock != null)
            {
                nt.rwLock.ReleaseReaderLock();
            }
        }
        internal MTNameTableEnumerator( MTNameTable nt ) {
            if (nt.rwLock != null)
                nt.rwLock.AcquireReaderLock(nt.timeout);

            names = new ArrayList();
            Walk( nt.rootNode );
            iName = -1;

            if (nt.rwLock != null)
                nt.rwLock.ReleaseReaderLock();
        }