title: Get all classes from namespace and work on their properties
body: <p>I want to get all classes from namespace so I have used this code:</p>
  
  <pre><code>var theList = Assembly.GetExecutingAssembly().GetTypes()
                    .Where(t =&gt; t.Namespace == myNameSpace)
                    .ToList();
  </code></pre>
  
  <p>It's working but when I'm looping through this list, I want to create instance or call constructor of each class in theList list and for example call their methods or properties.</p>
  
  <p>Ofc this code is not working, but this is my purpose. </p>
  
  <pre><code>foreach (Type t in theList)
          {
              description += t.Description;
          }
  </code></pre>
  
  <p>@Edit
  I did:</p>
  
  <pre><code>        var theList = Assembly.GetExecutingAssembly().GetTypes()
                .Where(t =&gt; t.Namespace == myNameSpace)
                .ToList();
  
          foreach (Type t in theList)
          {
              Command instance = (Command)Activator.CreateInstance(t);
              result += Environment.NewLine + instance.Name + " - " + instance.Description;
          }
  </code></pre>