You have a C# application.
The application requires 500 MB of available memory.
You need to identify whether there is enough available memory when the application starts.
Which class should you use?
A. OutOfmemoryException
B. MemoryStream
C. PerformanceCounter
D. DiagnosticsConfigurationHandler
An example
http://www.dotnetspider.com/resources/4612-Find-Memory-usage-CPU-usage.aspx