public CItem GetIteBySerialID(Int64 nSerialID) { for (int i = 0; i < m_Container.Count; i++) { CItem pItem = m_Container[i]; if (pItem != null && pItem.GetItemID() == nSerialID) { return(pItem); } } return(null); }