DisposePacketReader() 개인적인 메소드

private DisposePacketReader ( PacketReader packetReader ) : void
packetReader PacketReader
리턴 void
예제 #1
0
        public void Dispose()
        {
            _eosFound = true;

            _container.DisposePacketReader(this);
            _container = null;

            _current = null;

            if (_first != null)
            {
                var node = _first;
                _first = null;
                while (node.Next != null)
                {
                    var temp = node.Next;
                    node.Next = null;
                    node      = temp;
                    node.Prev = null;
                }
                node = null;
            }

            _last = null;
        }
예제 #2
0
 public void Dispose()
 {
     _eosFound = true;
     _container.DisposePacketReader(this);
     _container = null;
     _current   = null;
     if (_first != null)
     {
         Packet packet = _first;
         _first = null;
         while (packet.Next != null)
         {
             Packet next = packet.Next;
             packet.Next = null;
             packet      = next;
             packet.Prev = null;
         }
         packet = null;
     }
     _last = null;
 }