Mosa.HardwareSystem.DeviceManager.GetAllDevices C# (CSharp) Method

GetAllDevices() public method

Gets all devices.
public GetAllDevices ( ) : LinkedList
return LinkedList
        public LinkedList<IDevice> GetAllDevices()
        {
            spinLock.Enter();

            var list = new LinkedList<IDevice>();

            foreach (var device in devices)
                list.AddLast(device);

            spinLock.Exit();

            return list;
        }