title: Getting Orchard fields from different parts
body: <p>In an Orchard summary view I'm displaying a content item that could be a Page, a Blog Post or a Projection.</p>
  
  <p>I've attached a Media Picker field to all these types and called it Picture.</p>
  
  <p>I'm currently using this horrible bit of code to access the media picker from the content item:</p>
  
  <pre><code>if (contentItem != null)
  {
      try
      {
          mediaPicker = (MediaLibraryPickerField) contentItem.Blog.Picture;
      }
      catch (Exception e) {}
  
      if (mediaPicker == null)
      {
          try
          {
              mediaPicker = (MediaLibraryPickerField)
                              contentItem.Page.Picture;
          }
          catch (Exception e) {}
      }
  
      if(mediaPicker == null)
      {
          try
          {
              mediaPicker = (MediaLibraryPickerField) contentItem.ProjectionPage.Picture;
          }
          catch (Exception e) {}
      }
  }
  </code></pre>
  
  <p>There must be a better way?</p>