title: A lot derived classes without functonality only to "know" their type
body: <p>I think there is a better solution for the following problem.</p>
  
  <p>Let's say we have the following structure of classes:</p>
  
  <pre><code>class Foo
  {
      public int Id { get; set; }
  }
  
  class Bar1 : Foo
  {
  
  }
  
  class Bar2 : Foo
  {
  
  }
  
  class Bar3 : Foo
  {
  
  }
  //.. A lot more of these Foo derivations
  </code></pre>
  
  <p>The derived classes has no functionality. 
  The following examples give an idea what the classes are for:</p>
  
  <ul>
  <li>Access a specific object from a specific type (object from type Bar3 with Id 5) in a list of Foo objects.</li>
  <li>Displaying different data in a GUI related to a specific object from type Foo. </li>
  </ul>
  
  <p>Is there a better way to identify one of these objects without derivating them?</p>
  
  <p>Thanks!</p>