title: Total installed system memory - cross-platform solution
body: <p>I'm writing a C# program, and one of the requirements I must fulfill is determining the total installed system memory for determining values for a config file. This isn't an XY problem, this information is mandatory.</p>
  
  <p>Before I made this cross-platform, I could use the <code>ComputerInfo</code> class in the <code>Microsoft.VisualBasic.Devices</code> namespace, but this is not available in .NET Core, so I cannot use it on a non-Windows platform. The <code>System.Diagnostics.Process</code> class provides information on the memory available to the current process, but this does not include the total physical RAM available on the machine.</p>
  
  <p>Is there a cross-platform way of querying this, or do I have to resort to having the user input this information manually?</p>