title: What is the easiest way in C# to check if hard disk is SSD without writing any file on hard disk?
body: <p>I need to check in C# if a hard disk is SSD (Solid-state drive), no seek penalty?
  I used:</p>
  
  <pre><code>    ManagementClass driveClass = new ManagementClass("Win32_DiskDrive");
      ManagementObjectCollection drives = driveClass.GetInstances(); 
  </code></pre>
  
  <p>But its only gives Strings that contain SSD in the properties, I can't depend on that?</p>
  
  <p>I Need a direct way to check that?</p>