public SocketInfo GetInfo() { SocketInfo info = null; lock (mList) { if (mList.Count > 0) { info = mList[0]; mList.RemoveAt(0); } } return info; }