title: How to get correct file extension when you know content-type
body: <p>I have a byte[] containing data for a file. Array can contain data for several different filetypes like xml, jpg, html, csv, etc. </p>
  
  <p>I need to save that file in disk. </p>
  
  <p>I'm looking for a c# code to find out proper file extension when you know content-type, but aren't sure for the file extension?</p>