SystemInformation ClassDelta Engine Documentation
Base system information class that is implemented in each platform module. It provides system information that does not change over the course of a running application or does not need updates. View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Platforms SystemInformation
    DeltaEngine.Platforms.Mocks MockSystemInformation
    DeltaEngine.Platforms.Windows WindowsSystemInformation

Namespace: DeltaEngine.Platforms
Assembly: DeltaEngine.Platforms (in DeltaEngine.Platforms.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public abstract class SystemInformation

The SystemInformation type exposes the following members.

Constructors

  NameDescription
Protected methodSystemInformation
Initializes a new instance of the SystemInformation class
Top
Properties

  NameDescription
Public propertyAvailableRam
Public propertyCoreCount
Public propertyCpuName
Public propertyCpuSpeed
Public propertyCpuUsage
Protected propertyCurrentCulture
Public propertyGpuName
Public propertyIsConsole
Public propertyIsMobileDevice
Public propertyIsTablet
Public propertyLanguage
Public propertyMachineName
Public propertyMaxRam
Public propertyMaxResolution
Public propertyNetworkState
Public propertyPlatformName
Public propertyPlatformVersion
Public propertySoundCardAvailable
Public propertyUsedRam
Public propertyUsername
Public propertyVersion
Top
Remarks

Tests: DeltaEngine.Platforms.Tests.SystemInformationTests
Examples

18 unit tests call DeltaEngine.Platforms.SystemInformation
[Test]
public void HasLanguage()
{
    Assert.IsFalse(string.IsNullOrEmpty(info.Language));
}
[Test]
public void CheckVersionIsCorrect()
{
    Assert.GreaterOrEqual(info.Version, new Version("0.9.8.3"));
}
[Test]
public void CheckHasNetworkState()
{
    Assert.IsTrue(info.NetworkState == NetworkState.ConnectedViaWifiNetwork ||
        info.NetworkState == NetworkState.Disconnected);
}
See Also