title: When checking if a file is MP3 is checking the filename string with an .EndsWith good enough?
body: <p>I'm doing this:</p>
  
  <pre><code>    private void LoadSoundFile()
      {
          if (openFileDialog1.ShowDialog() == DialogResult.OK)
          {
              if (openFileDialog1.FileName.EndsWith(".mp3"))
              {
                  txtFileName.Text = openFileDialog1.FileName;
              }
              else
              {
                  MessageBox.Show("Currently Musicality only supports MP3 files.", "Unsupported file chosen.");                        
              }
          }
  
      }
  </code></pre>
  
  <p>Is there a better way of checking file types or am I doing it the right way?</p>