Change it from 'public T TryDequeue()' to 'public bool TryDequeue(out T value)'
It conforms to ConcurrentQueue.TryDequeue method allowing easier migration if
one needs.
Also this makes code cleaner with simpler check.
E.g.
NetSending uncSend;
while ((uncSend = m_unsentUnconnectedMessage.TryDequeue()) != null)
==>
NetSending uncSend;
while (m_unsentUnconnectedMessage.TryDequeue(out uncSend))
Original issue reported on code.google.com by NN1436401@gmail.com on 5 Sep 2010 at 9:25
Original issue reported on code.google.com by
NN1436401@gmail.com
on 5 Sep 2010 at 9:25