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
Is this correct?
dunno. Other dumps are also identifying the PerformanceCounter option as correct.
This could be true. The solution would be to use the PerformanceCounter to get the available RAM.
See https://stackoverflow.com/questions/10027341/c-sharp-get-used-memory-in or https://stackoverflow.com/questions/4679962/what-is-the-correct-performance-counter-to-get-cpu-and-memory-usage-of-a-process for example.