Universe.Framework.Services.ClassHelpers.Inventory.InventoryFolderImpl.FindFolderForType C# (CSharp) Method

FindFolderForType() public method

Look through all child subfolders for a folder marked as one for a particular folder type, and return it.
public FindFolderForType ( short type ) : InventoryFolderImpl
type short
return InventoryFolderImpl
        public InventoryFolderImpl FindFolderForType (short type)
        {
            lock (m_childFolders) {
                foreach (InventoryFolderImpl f in m_childFolders.Values.Where (f => f.Type == type)) {
                    return f;
                }
            }

            return null;
        }