public InventoryFolderImpl FindFolderForType (short type) { lock (m_childFolders) { foreach (InventoryFolderImpl f in m_childFolders.Values.Where (f => f.Type == type)) { return f; } } return null; }