title: How to get value of the property of the child classes from the parent?
body: <p>I have a base class named <code>Template</code>. And i have many children classes like <code>TemplateChild1</code>, <code>TemplateChild2</code> etc that inherited <code>Template</code> class. All child classes basically have the same structure and looks like this:</p>
  
  <pre><code>public class TemplateChild1 : Template
  {
      public const string Name = "Child class 1";
      //many other properties
  }
  
  public class TemplateChild2 : Template
  {
      public const string Name = "Child class 2";
      //many other properties
  }
  
  //and many more other child classes with similar structure
  </code></pre>
  
  <p>In my task i have to show all this child classes of the <code>Template</code> class in the <code>ComboBox</code> on the form. So for this i used this code:</p>
  
  <pre><code>var templateTypes = Assembly
                      .GetAssembly(typeof(Template))
                      .GetTypes()
                      .Where(t =&gt; t.IsSubclassOf(typeof(Template))).ToList();
  </code></pre>
  
  <p>Then i put this list at the <code>ComboBox</code> and it works fine. But in <code>ComboBox</code> i see only the developing name of the class, but not the value of the <code>Name</code> property. For example, instead of "Child class 1"/"Child class 2"/etc. , i see TemplateChild1/TemplateChild2/etc. How can i fix that problem?</p>