Use file-scoped namespaces (#842)
This commit is contained in:
@@ -6,28 +6,27 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace LibreHardwareMonitor.Hardware.Memory
|
||||
namespace LibreHardwareMonitor.Hardware.Memory;
|
||||
|
||||
internal class MemoryGroup : IGroup
|
||||
{
|
||||
internal class MemoryGroup : IGroup
|
||||
private readonly Hardware[] _hardware;
|
||||
|
||||
public MemoryGroup(ISettings settings)
|
||||
{
|
||||
private readonly Hardware[] _hardware;
|
||||
_hardware = new Hardware[] { Software.OperatingSystem.IsUnix ? new GenericLinuxMemory("Generic Memory", settings) : new GenericWindowsMemory("Generic Memory", settings) };
|
||||
}
|
||||
|
||||
public MemoryGroup(ISettings settings)
|
||||
{
|
||||
_hardware = new Hardware[] { Software.OperatingSystem.IsUnix ? new GenericLinuxMemory("Generic Memory", settings) : new GenericWindowsMemory("Generic Memory", settings) };
|
||||
}
|
||||
public string GetReport()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
public string GetReport()
|
||||
{
|
||||
return null;
|
||||
}
|
||||
public IReadOnlyList<IHardware> Hardware => _hardware;
|
||||
|
||||
public IReadOnlyList<IHardware> Hardware => _hardware;
|
||||
|
||||
public void Close()
|
||||
{
|
||||
foreach (Hardware ram in _hardware)
|
||||
ram.Close();
|
||||
}
|
||||
public void Close()
|
||||
{
|
||||
foreach (Hardware ram in _hardware)
|
||||
ram.Close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user